The templates are html...so to comment you would use <!-- some comment
-->

On Aug 7, 2:32 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I've the following template and when I render it, the single line
> comment doesn't get commented out.
> Am I missing something; I'm new to Django and just start playing with
> the templates.
>
> #### template
> 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 }}
>
> ### Render output>>> print render_to_response('testtmpl.html', {'link':link, 
> 'html':html})
>
> Content-Type: text/html; charset=utf-8
>
> Test single line and multi-lines comments
>
> Test1
> hello {# This should be commented out #} hello  
> <<<-----------http://172.27.78.97:8888/is/launch_calendar/event/?type__id__exact=3
>
> Test3
> &quot;this is a quote statment &amp; some other \stuff&quot;
>
> Thanks,
> ~Carmen


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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