From: Ben Darnell Date: Fri, 19 Jun 2020 21:27:58 +0000 (-0400) Subject: template: Clarify docs on escaping X-Git-Tag: v6.1.0b1~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2879%2Fhead;p=thirdparty%2Ftornado.git template: Clarify docs on escaping Originally from #2831, which went to the wrong branch. --- diff --git a/tornado/template.py b/tornado/template.py index f2eddc6e7..23736e61a 100644 --- a/tornado/template.py +++ b/tornado/template.py @@ -98,8 +98,9 @@ template directives use ``{% %}``. 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 %}``