-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query template for delimited value #47
Comments
Hi Jonathan. If you look for an identifier, such as A definitive general solution to your request would be to expose the template syntax tree in the public API. However your recent #45 et #46 issues will have me tweak both parser and compiler: I'm happy the AST headers are still private, because I'm free to break any internal guts today :-) I can explain you how to use the current private headers, and look for the |
HI Gwendal I can work with the first method. As ever, thanks for the reply. Good luck with the surgery on GRMustache! |
Thanks ! I'm not a parser professional, and Mustache parsing has quirks that do not help, such as the |
Is it possible using the existing API to query a template as to whether it contains a particular key value, say
{{ my-header }}
?My usage case is: if a certain key is present in the template then the GUI presents options to configure the content for that key. If the key is absent then the GUI disables the options.
Obviously I can scan/regex the template string externally but it would need to take into account the current delimiter and be able to deal with filters.
The text was updated successfully, but these errors were encountered: