diff --git a/CHANGES.rst b/CHANGES.rst index 4ff4770..f24ee66 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,5 @@ +.. currentmodule:: jinja2 + Jinja Changelog =============== @@ -7,6 +9,12 @@ Version 2.11 unreleased +- Async support is only loaded the first time an + :class:`~environment.Environment` enables it, in order to avoid a + slow initial import. (`#765`_) + +.. _#765: https://github.com/pallets/jinja/issues/765 + Version 2.10 ------------ diff --git a/docs/templates.rst b/docs/templates.rst index 266da61..c60234b 100644 --- a/docs/templates.rst +++ b/docs/templates.rst @@ -1309,11 +1309,9 @@ The general syntax is `` if else ``. The `else` part is optional. If not provided, the else block implicitly -evaluates into an undefined object: +evaluates into an undefined object:: -.. sourcecode:: jinja - - {{ '[%s]' % page.title if page.title }} + {{ ('[%s]' % page.title) if page.title }} .. _builtin-filters: