- Installing and Using
- Variable Interpolation
- Including Files
- Template Inheritance and Blocks
- Control Blocks
Jinja2 is a template engine for Python featuring an optional sandbox environment.
Along with using variables and building off files, Jinja2 also has functionality for using loops.
The keywords for… in work in Jinja2 and serve as a way to move through data structures like Lists in Python. This creates a control block that “controls” how things are shown.
Conditional statements are also supported in Jinja2. They use the keywords if and endif.