You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
One solution is to add another global __context__ to hold the dictionary of all variables. Then moban can have its own/internal templates like list_template_variables.jj2 which render command line output.
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: