{# one line is properly commented out, as it should be #}
{# but multiple lines are output as literal text,
as if they weren't even commented at all,
and we even see the comment begin/end tags! #}
Django Template Docs [1] don't mention this. A little research [2][3]
revealed that the Django devs refuse to support multiline comments
unless you use the more cumbersome {% comment %} blah blah {%
endcomment %} syntax.
Hopefully this will save somebody else some time. {# #} comments are
for single lines only, by design.
[1] http://www.djangoproject.com/documentation/0.96/templates/#comments
[2] http://code.djangoproject.com/ticket/3888
[3]
http://groups.google.com/group/django-developers/browse_thread/thread/35ed32567776095
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---