Skip to content

Commit

Permalink
template: Clarify docs on escaping
Browse files Browse the repository at this point in the history
Originally from tornadoweb#2831, which went to the wrong branch.
  • Loading branch information
bdarnell committed Jun 19, 2020
1 parent c19e8ff commit 9c090f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tornado/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ def add(x, y):
To comment out a section so that it is omitted from the output, surround it
with ``{# ... #}``.
These tags may be escaped as ``{{!``, ``{%!``, and ``{#!``
if you need to include a literal ``{{``, ``{%``, or ``{#`` in the output.
To include a literal ``{{``, ``{%``, or ``{#`` in the output, escape them as
``{{!``, ``{%!``, and ``{#!``, respectively.
``{% apply *function* %}...{% end %}``
Expand Down

0 comments on commit 9c090f5

Please sign in to comment.