On Aug 8, 4:12 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> The templates are html...so to comment you would use <!-- some comment
> -->

The templates are rendered by Django, so {#    #} should work. I just
tested it and it's working fine for me...

>>> from django.template import Template, Context
>>> content = ''' Test single line and multi-lines comments

Test1
hello {# This should be commented out #} hello
{{ link|escape }}

{% comment %}
The following two lines should be commented out
Test2
{{ link|urlencode }}
{% endcomment %}

Test3
{{ html|escape }} '''
>>> print Template(content).render(Context())
 Test single line and multi-lines comments

Test1
hello  hello




Test3


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to