From 9c090f5546bc7d53d5e6740b2671f61fdc1833c9 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Fri, 19 Jun 2020 17:27:58 -0400 Subject: [PATCH] template: Clarify docs on escaping Originally from #2831, which went to the wrong branch. --- tornado/template.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 %}`` -- 2.47.2