我想用一句话来 comments 这一点
{% if something.property %}
<table>
<tr>...
{% # this is a comment %}
{% if something.property %}
<table>
<tr>...
我想用一句话来 comments 这一点
{% if something.property %}
<table>
<tr>...
{% # this is a comment %}
{% if something.property %}
<table>
<tr>...
正如Miles回答的那样,{% comment %}...{% endcomment %}
用于多行注释,但您也可以注释掉同一行的文本,如下所示:
{# some text #}