Is there a way to get all expressions in a template? #1911
Unanswered
r-j-sharma
asked this question in
Q&A
Replies: 1 comment
-
Did you already take a look at the Compiler API? It may help you with your problem. https://github.com/handlebars-lang/handlebars.js/blob/master/docs/compiler-api.md |
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
{{title}}
-
We would like to get a list of all the expressions in a given template.
Right now we are thinking of using regular expressions. A better way would be to register a special helper that just grabs the expression and then pre compile/compile in a new HandleBar environment.
Is it possible to register a helper that is called for all expressions?
Is it then possible for this helper to call the default helper?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions