jinja2-cli
jinja2-cli copied to clipboard
--strict should make {{ environ('does_not_exist') }} fail?
Currently, there is no way to force jinja2-cli to stop processing a template when an environment variable is missing. The template is rendered with None
as the missing value. It would be awesome if jinja2-cli would fail on the missing variable.
You can write:
{{environ('MYVAR') or MYVAR}}
in your template file and the processing will fail if MYVAR is neither defined in the env or from the other way you can pass key/value to jinja2-cli.