mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
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:
parent
ffa6d95f65
commit
c57ba67331
4 changed files with 13 additions and 22 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue