Jinja templates¶
Jinja is a standard templating engine, and we cannot adequately cover its basics here. Refer to Jinja’s Template Designer Guide instead.
In the fmf-jinja context¶
The jinja files are handled as follows:
Files ending with a
.j2extensions are treated as jinja template files with the generated file having the same path and filename except for the final.j2extension that is stripped.The variables used in the jinja template are determined by the vars variable of the current fmf node.
{{ }}syntax in the path files are not expanded. Use the recursive feature instead.
Additional jinja extensions¶
Currently fmf-jinja does not provide additional filters and functions, but some are
being planned.
Extending jinja environment¶
Currently, there is no mechanism to extend the jinja2.Environment used.