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.
This commit is contained in:
Chris Beaven 2012-06-19 10:49:30 +12:00
parent ffa6d95f65
commit c57ba67331
4 changed files with 13 additions and 22 deletions

View file

@ -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