Get template's assigns in drop's methods #808
Unanswered
soppiyaCMS
asked this question in
Q&A
Replies: 2 comments 1 reply
|
You may want to register your own assign and keep track of its calls. You can duplicate the implementation from this repo. |
0 replies
|
It's worth noting that, in Shopify/liquid, all drops have access to the active context object. So this might be a good feature to add to LiquidJS. Shopify/liquid assign to a Which can cause issues: Shopify/liquid#1930 Other Liquid implementations pass a |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, i am looking for a way to get the variables assigned in a template inside the drop methods that are invoked from the template.
Like:
{% assign foo = 'bar' %}
{% assign collection = collections['key'] %}
I need to access the foo inside the liquidMethodMissing() of collections drop.
Is there a way to do that? Thanks in advance.
All reactions