Re: comment and uncomments in django html template

2015-06-20 Thread Daniel Roseman
On Friday, 19 June 2015 17:48:41 UTC+1, Sindhujit Ganguly 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.
>
>> 
>>
>
That is totally false. Anything within a Django comment tag will not be 
rendered in the output, whether it's HTML or JS.

But if you need comments inside JS scripts, why don't you use JS comment 
syntax?
--
DR.

-- 
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/482d978c-cee4-4ead-bdb4-e676ce61e35b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: comment and uncomments in django html template

2015-06-19 Thread Bill Freeman
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 
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 > > 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
> 
> .
>
> 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.


Re: comment and uncomments in django html template

2015-06-19 Thread Sindhujit Ganguly
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  > 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.
For more options, visit https://groups.google.com/d/optout.


Re: comment and uncomments in django html template

2015-06-19 Thread Karen Tracey
On Fri, Jun 19, 2015 at 12:42 PM, Sindhujit Ganguly 
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/CACS9racwHfQ6RRL7MCe1vJs6F9V3fefZ9QiyoU1TQ_YX8o4riQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


comment and uncomments in django html template

2015-06-19 Thread Sindhujit Ganguly
Hi,
  Does anyone know how to do multiple line comments in django html 
templates?

Thanks

-- 
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/029f3d99-a715-437e-b735-4d0224a671b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.