Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 451cbfe8943edeadda6f0de78c03c90cb8f9d7f6 1 parent ee2dfe7
@malcolmt malcolmt authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 docs/templates.txt
View
8 docs/templates.txt
@@ -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
====================
Please sign in to comment.
Something went wrong with that request. Please try again.