If your JavaScript comes from a django template, yes, the comment tag will
work.  If, instead, you want the lines delivered to the browser, but
commented out as far as JavaScript is concerned, use /* to start the
comment and */ to end it -- multiple lines are allowed.

On Fri, Jun 19, 2015 at 12:48 PM, Sindhujit Ganguly <siga1...@colorado.edu>
wrote:

> This does not work for javascript defined inside html templates.. This is
> for html structures.. I needed for multiple line comments in js scripts.
>
> On Friday, June 19, 2015 at 10:46:40 AM UTC-6, Karen Tracey wrote:
>>
>> On Fri, Jun 19, 2015 at 12:42 PM, Sindhujit Ganguly <siga...@colorado.edu
>> > wrote:
>>
>>>
>>>   Does anyone know how to do multiple line comments in django html
>>> templates?
>>>
>>>
>> Yes, block comment template tag:
>>
>> https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#comment
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3d5ed791-e3c1-4ee9-936d-e649f905839c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/3d5ed791-e3c1-4ee9-936d-e649f905839c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB%2BAj0tKPK4RCbvSANYYbN_CozNWy%3DOLPyW49aWsai4RZy%3DKnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to