Jinja

A templating language for Python tools that fills placeholders in text, written inside double curly braces, with values and simple logic.

In more detail

{{ name }} is replaced by a variable's value, {% ... %} holds logic such as loops and conditions, and filters such as default transform values. It is used by Ansible, by Python web frameworks such as Flask and by many other tools.

Examples

msg: "core {{ ansible_version.full }}" in an Ansible debug task.
when: conditions in Ansible are bare Jinja expressions without braces.

Related terms

Taught in

References

Certification courses