diff options
| author | Chris Beaven <smileychris@gmail.com> | 2012-06-19 10:49:30 +1200 |
|---|---|---|
| committer | Chris Beaven <smileychris@gmail.com> | 2012-06-19 10:49:33 +1200 |
| commit | c57ba673312cb5774d544353044e2182b6223040 (patch) | |
| tree | 366a3cf580fce4437191d2594af9ab6b9d1f7bef /docs | |
| parent | ffa6d95f65363b7f4f9047ab11561880be29049a (diff) | |
Fixed #14502 again -- saner verbatim closing token
Previously, the closing token for the verbatim tag was specified as the
first argument of the opening token. As pointed out by Jannis, this is
a rather major departure from the core tag standard.
The new method reflects how you can give a specific closing name to
{% block %} tags.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index 6f341e9f97..cf228d72f6 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -1047,12 +1047,12 @@ Django's syntax. For example:: {{if dying}}Still alive.{{/if}} {% endverbatim %} -You can also specify an alternate closing tag:: +You can also designate a specific closing tag, allowing the use of +``{% endverbatim %}`` as part of the unrendered contents:: - {% verbatim finished %} - The verbatim tag looks like this: - {% verbatim %}{% endverbatim %} - {% finished %} + {% verbatim myblock %} + Avoid template rendering via the {% verbatim %}{% endverbatim %} block. + {% endverbatim myblock %} .. templatetag:: widthratio |
