A very fast and expressive template engine.
Jinja is a fast, expressive, extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. Then the template is passed data to render the final document.
It includes:
Jinja's philosophy is that while application logic belongs in Python if possible, it shouldn't make the template designer's job difficult by restricting functionality too much.
{% extends "base.html" %}
{% block title %}Members{% endblock %}
{% block content %}
<ul>
{% for user in users %}
<li><a href="{{ user.url }}">{{ user.username }}</a></li>
{% endfor %}
</ul>
{% endblock %}The Pallets organization develops and supports Jinja and other popular packages. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.
See our detailed contributing documentation for many ways to contribute, including reporting issues, requesting features, asking or answering questions, and making PRs.
`indent` filter ignores `blank`=`False` when `first`=`True` on first line
TypeError: cannot use 'tuple' as a dict key in LRUCache on Python 3.14
Something wrong occurred when generating a string for `UserDict`
ChainableUndefined causes `is escaped` test to pass for `undefined` child elements
poor performance when parsing unclosed string with many escape characters
invalid escape sequence DeprecationWarning from template syntax itself
deepcopy(jinja2.Template(...)) raises an exception
`test_elif_deep` fails on s390x with `RecursionError`
explain associativity and precedence between operators
FilterArgumentError exception is not documented and not in the "jinja2" module