I used this to create submission templates that contained expressions like {{hours or 0}}:{{minutes or 0}}, ie. for typing default parameters into a template. It looks for templates in the current working directory (or if you specify a path from root then there).
Jinja can do a lot of things which is probably overkill too, but I felt the need for a bit more than string substitution and then this was just the easy solution.
I used this to create submission templates that contained expressions like
{{hours or 0}}:{{minutes or 0}}
, ie. for typing default parameters into a template. It looks for templates in the current working directory (or if you specify a path from root then there).Jinja can do a lot of things which is probably overkill too, but I felt the need for a bit more than string substitution and then this was just the easy solution.