You could do HTML comments, too.

Generally I advise keeping view code simple enough that comments are not 
necessary.


On Thursday, May 24, 2012 6:25:56 PM UTC-7, 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}}
>

Reply via email to