#3888: Template comments eats text
-----------------------+----------------------------------------------------
Reporter: tonnzor | Owner: adrian
Status: closed | Component: Template system
Version: SVN | Resolution: invalid
Keywords: | Stage: Unreviewed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
-----------------------+----------------------------------------------------
Comment (by ubernostrum):
The difference is this:
{{{
{# This comment cannot span multiple lines #}
{% comment %}This
comment
can
span
as
far
as
it
want{% endcomment %}
}}}
So it's like the difference between `//` and `/* */` in some languages --
one is a one-line comment, the other can span multiple lines.
The docs could make that more clear, I think.
--
Ticket URL: <http://code.djangoproject.com/ticket/3888#comment:3>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---