Forums

Error at for cycle comment's in html

Hi everybody.

I am having a problem with a comment of a "for cycle" in "the Templates", I have figured out the mistake, but without knowing the reason. Here the situation:

Bad way: <!--{% for question in question_list %}-->

Good way: <!-- %for question in question_list% -->

Why I can not comment with the curly brackets?

Thanks in advanced.

Those are HTML comments, they stop the browser from showing what's in them in the page. They do not stop the template processor from processing them. Check the documentation for your template processor to see if there's a way to comment out sections of templates.

Ok ,thank you so much.