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:
Malcolm Tredinnick 2007-05-27 10:44:42 +00:00
parent ee2dfe7e46
commit 451cbfe894
1 changed files with 7 additions and 1 deletions

View File

@ -112,7 +112,7 @@ know how to write Python code.
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'``::
@ -122,6 +122,12 @@ A comment can contain any template code, invalid or not. For example::
{# {% 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
====================