diff options
| author | Muhammad Hammad <hammadarshad834@gmail.com> | 2021-08-31 23:31:23 +0500 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-03 20:08:01 +0200 |
| commit | f1d2d2679bfcafa650b840bb3f187b9483d04f77 (patch) | |
| tree | 781251c203415e7b7def5fa24f1a0ff2f0f9e9f6 /docs | |
| parent | 68b8eda78864b78d1b8b2529ec119ec440f8458a (diff) | |
Fixed #33067 -- Improved templatetag docs.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 7363ad7079..936c80cdb5 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1054,8 +1054,9 @@ this example, the space around ``Hello`` won't be stripped:: Outputs one of the syntax characters used to compose template tags. -Since the template system has no concept of "escaping", to display one of the -bits used in template tags, you must use the ``{% templatetag %}`` tag. +The template system has no concept of "escaping" individual characters. +However, you can use the ``{% templatetag %}`` tag to display one of the +template tag character combinations. The argument tells which template bit to output: @@ -1074,7 +1075,10 @@ Argument Outputs Sample usage:: - {% templatetag openblock %} url 'entry_list' {% templatetag closeblock %} + The {% templatetag openblock %} characters open a block. + +See also the :ttag:`verbatim` tag for another way of including these +characters. .. templatetag:: url |
