Skip to content

Commit

Permalink
Merge pull request pallets#1022 from jdufresne/hl
Browse files Browse the repository at this point in the history
Correct syntax highlighting of jinja block in docs
  • Loading branch information
davidism committed Jul 20, 2019
2 parents 13cc9f4 + 01af178 commit 55cb0e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1350,9 +1350,7 @@ 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:

.. code-block:: text
evaluates into an undefined object::

{{ ('[%s]' % page.title) if page.title }}

Expand Down

0 comments on commit 55cb0e7

Please sign in to comment.