You just need
{{# one line comment }}
or
{{"""
blah
blah
blah
'''}}
basically the same as python commends but wrapped in {{...}}
On Dec 14, 6:43 am, Jim Gregory <[email protected]> wrote:
> Never mind. FWIW, I found this soluion works:
>
> {{# '''
> <!-- html comment start here
> blah
> blah
> blah
> end of comment -->
> '''}}
>
> -Jim
>
> On Dec 14, 6:34 am, Jim Gregory <[email protected]> wrote:
>
>
>
>
>
>
>
> > The default layout.html has several helpful html comments in it, but I
> > don't want to render them on every request. I just want them visible
> > to the designer when editing the template.
>
> > I realize its possible to comment out lines of code like this:
>
> > {{ # <!-- (helpful information about the following html) --> }}
>
> > But it inserts a blank line in the response instead. Can this be
> > prevented?
>
> > Also, the html comments span several lines. Is it possible to comment
> > out several lines at once? Something like this won't work:
>
> > {{ #
> > <!-- This is the start of the html comment
> > blah
> > blah
> > blah
> > end of comment -->
>
> > }}
>
> > Just trying to make my html cleaner :). Thanks,
>
> > -Jim