Jinja2 inline comments

后端 未结 3 1552
天命终不由人
天命终不由人 2020-12-24 10:42

How can I put comments inside Jinja2 argument list declaration ?

Everything I have tried gives an error: jinja2.exceptions.TemplateSyntaxError: unexpected ch

3条回答
  •  梦毁少年i
    2020-12-24 11:09

    I was trying to add comments to Martijn Pieters.

    {% .. %} = {# .. #}

    {{ .. }} = {# .. #} (same as above)

提交回复
热议问题