Is it possible to get a list of all the variables that will be rendered in the output template? #496
-
I would like to get a list of all the variables that are used in the template, it could be a simple output or in a tag, also if the variable is in a block that won't be rendered, it shouldn't be in that list, for example, if the variable is used in an output of an if condition block, and the if condition is false, that variable isn't being rendered anymore so it shouldn't be in the list if it is not being used anywhere else. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I guess you can achieve this by recursively converting the scope passed into Liquid to getter/setter, via defineProperty. Currently LiquidJS doesn't and has no plan to provide hooks for context read. |
Beta Was this translation helpful? Give feedback.
I guess you can achieve this by recursively converting the scope passed into Liquid to getter/setter, via defineProperty.
Currently LiquidJS doesn't and has no plan to provide hooks for context read.