-
Dear minijinja community, I am using minijinja in a cli I am working on. Currently minijinja will render a template if values are missing by ignoring those values and living them blank in the template, is there a way to tell minijinja to fail if any value is missing? eg: based on https://github.com/mitsuhiko/minijinja/tree/main/examples/render-template I could have : users.json
users.html
The users.name field is missing in the context/values file, however minijinja still renders the file as:
By ignoring the missing I would like to know if it is possible to tell minijinja to fail if any variable in the template is not expanded. thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Pass |
Beta Was this translation helpful? Give feedback.
Pass
--strict
tominijinja-cli
and it will fail in all cases.