]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
template: Clarify docs on escaping 2879/head
authorBen Darnell <ben@cockroachlabs.com>
Fri, 19 Jun 2020 21:27:58 +0000 (17:27 -0400)
committerBen Darnell <ben@cockroachlabs.com>
Fri, 19 Jun 2020 21:27:58 +0000 (17:27 -0400)
Originally from #2831, which went to the wrong branch.

tornado/template.py

index f2eddc6e741784685abde1abbefb5e5a4ba9b863..23736e61adf8c3ccb8bd9982eaee7c992ca40951 100644 (file)
@@ -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 %}``