Skip to content
Myr

Fix "If" example in documentation (#1337)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix "If" example in documentation

authored by Adam Johnson · committed by GitHub · parent 5f79ba6 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/templates.rst+1 added-1 removed
1385 unmodified lines
1386The `else` part is optional. If not provided, the else block implicitly1387evaluates into an :class:`Undefined` object (regardless of what ``undefined``1388in the environment is set to):13891390.. sourcecode:: jinja1390.. code-block:: jinja13911392 {{ "[{}]".format(page.title) if page.title }}13931394
434 unmodified lines