-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add option to list all variables in all templates #130
Comments
Similar upstream jinja2 issue: pallets/jinja#174 SO thread https://stackoverflow.com/questions/26694767/jinja2-variables-in-included-template And something similar has been built for statik and coala-mobans One solution is to add another global |
For 0.4.0, ill do this feature without plugin api changes, which will be done in 0.5.0 |
waiting for @jayvdb 's time. |
Stale issue. |
It is important to be able to see a list of variables which are available to be set in the yaml, or re-used in new templates.
The new option would load all of the templates, display a list of "template.ext:variable" pairs, and not write any targets.
--list-template-variables
seems like a good name.Due to moban supporting many template processors, this will need to be part of the template engine API
For jinja, this is quite easy:
http://jinja.pocoo.org/docs/dev/api/#jinja2.meta.find_undeclared_variables
The text was updated successfully, but these errors were encountered: