Skip to content
Browse files

Added a clarification that {#...#} is only for single-line comments.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent ee2dfe7 commit 451cbfe8943edeadda6f0de78c03c90cb8f9d7f6 @malcolmt malcolmt committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 docs/templates.txt
8 docs/templates.txt
@@ -112,7 +112,7 @@ know how to write Python code.
-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

0 comments on commit 451cbfe

Please sign in to comment.
Something went wrong with that request. Please try again.