Added a clarification that {#...#} is only for single-line comments.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ee2dfe7e46
commit
451cbfe894
|
@ -112,7 +112,7 @@ know how to write Python code.
|
||||||
Comments
|
Comments
|
||||||
========
|
========
|
||||||
|
|
||||||
To comment-out part of a template, use the comment syntax: ``{# #}``.
|
To comment-out part of a line in a template, use the comment syntax: ``{# #}``.
|
||||||
|
|
||||||
For example, this template would render as ``'hello'``::
|
For example, this template would render as ``'hello'``::
|
||||||
|
|
||||||
|
@ -122,6 +122,12 @@ A comment can contain any template code, invalid or not. For example::
|
||||||
|
|
||||||
{# {% if foo %}bar{% else %} #}
|
{# {% if foo %}bar{% else %} #}
|
||||||
|
|
||||||
|
This syntax can only be used for single-line comments (no newlines are
|
||||||
|
permitted between the ``{#`` and ``#}`` delimiters). If you need to comment
|
||||||
|
out a multiline portion of the template, see the ``comment`` tag, below__.
|
||||||
|
|
||||||
|
__ comment_
|
||||||
|
|
||||||
Template inheritance
|
Template inheritance
|
||||||
====================
|
====================
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue