On May 24, 2012, at 3:24 PM, pbreit wrote:
> I think I recall seeing it written somewhere that you can't do that type of 
> comment in between view tags. I think it needs to be:
> 
> {{# comment
> 
> or
> 
> {{if True:
> # comment
> pass}}

It's true that comments are tricky in template code. It's possible (I don't 
remember exactly) that the closing brackets in {{ if True: # comment }} are 
treated as part of the comment. In that case, it might work to write:

{{if True:
#comment
}}
html
{{pass}}

or 

{{ # comment
if True:}}
html
{{pass}}


> 
> 
> On Thursday, May 24, 2012 1:04:30 PM UTC-7, Vasile Ermicioi wrote:
> hi,
> 
> 
> {{if True: #some comment}}
> here some html
> {{pass}}
> 
> is raising an error
> IndentationError: expected an indented block


Reply via email to