Skip to content

Add option to list all variables in all templates #130

@jayvdb

Description

@jayvdb

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions