Is there a way to obtain all referenced "variables" from a compiled template? #499
Unanswered
soenkeliebau
asked this question in
Q&A
Replies: 1 comment
-
The idea is to find out all |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an application that compiles a template once and then renders it multiple times with changing contexts as input.
For my purpose it would be interesting to find out which variable references the template contains, because that would allow me to skip contexts that would result in duplicates.
I have looked at the data structure of a compiled template and it seems like it might be possible to retrieve this, but it looks quite involved. Is there a simple way to obtain this information? Maybe rendering with an empty context and looking at errors that occurred or something similar..
Beta Was this translation helpful? Give feedback.
All reactions