On May 24, 2012, at 6:25 PM, Vasile Ermicioi wrote:
> ah, ok,
> 
> I am not familiar with template implementation but shouldn't be a more 
> explanatory error than "IndentationError: expected an indented block" ?
> it took me some minutes to figure out the problem, I was looking in the code 
> and couldn't understand what is the problem
> 
> I reported  that, 
> {{if True: #some comment}}
> here some html
> {{pass}}
> 
> but of course there was a much longer if condition with code inside, if we 
> care about ...
> about me I think next time I will follow your advice and will put comments 
> from views in their own line
> {{#some comment}}
> {{if True:}}
> ...
> {{pass}}

You might have better luck with this, where the comment isn't eating the 
closing }} on the first line.

{{#some comment
if True:}}
...
{{pass}}

Reply via email to