mirror of
https://gitee.com/openharmony/third_party_jinja2
synced 2024-11-23 15:19:46 +00:00
add changelog
fix unrelated docs issue
This commit is contained in:
parent
2c49d14cec
commit
989a7db234
@ -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
|
||||
------------
|
||||
|
@ -1309,11 +1309,9 @@ The general syntax is ``<do something> if <something is true> else <do
|
||||
something 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:
|
||||
|
Loading…
Reference in New Issue
Block a user