1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #22753 -- Documented ability to use a note with the {% comment %} tag.

This commit is contained in:
Bryce Nesbitt 2014-06-02 13:19:12 -07:00 committed by Tim Graham
parent 11f0899bbe
commit e020894470

View File

@ -52,11 +52,13 @@ comment
^^^^^^^
Ignores everything between ``{% comment %}`` and ``{% endcomment %}``.
An optional note may be inserted in the first tag. For example, this is
useful when commenting out code for documenting why the code was disabled.
Sample usage::
<p>Rendered text with {{ pub_date|date:"c" }}</p>
{% comment %}
{% comment "Optional note" %}
<p>Commented out text with {{ create_date|date:"c" }}</p>
{% endcomment %}