The Pallets team is pleased to release Jinja 2.11.0. Read the changelog for the full list of changes. Some of the bigger changes include:
jinja2.ext.debug
extension adds a {% debug %}
tag to
quickly dump the current template context.ChainableUndefined
type allows silently ignoring attribute
access on undefined variables.loop.length
and loop.nextitem
work
better in both sync and async environments.As outlined in Ending Python 2 Support, 2.11.x will be the last version to support Python 2.7 and 3.5. The next version will be 3.0 and will support Python 3.6 and newer.
The package name will remain "Jinja2" and imports will remain jinja2
.
"Jinja2 3.0" looks a little weird, but given the years of community
momentum behind the name, we concluded it was less disruptive to keep it
as-is.
Install from PyPI with pip:
pip install -U Jinja2
The Pallets organization accepts donations as part of the non-profit Python Software Foundation (PSF). Donations through the PSF support our efforts to maintain the projects and grow the community.
The Pallets team and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use.