Author: mtredinnick
Date: 2007-05-27 05:44:42 -0500 (Sun, 27 May 2007)
New Revision: 5359

Modified:
   django/trunk/docs/templates.txt
Log:
Added a clarification that {#...#} is only for single-line comments.


Modified: django/trunk/docs/templates.txt
===================================================================
--- django/trunk/docs/templates.txt     2007-05-27 04:37:46 UTC (rev 5358)
+++ django/trunk/docs/templates.txt     2007-05-27 10:44:42 UTC (rev 5359)
@@ -112,7 +112,7 @@
 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 @@
 
     {# {% 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
 ====================
 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to