我越来越Invalid block tag: 'else'
代码相当简单:
<tr>
<td>...</td>
</tr>
{% ifequal var1 "string" %}
{% for i in range5 %}
{% with v.i as an %}
{% if an %}
<tr>
<td>...</td>
</tr>
{% else %}
<tr>
<td style="background-color:#A8A8A8"> </td>
</tr>
{% endif %}
{% endwith %}
{% endfor %}
<tr>
<td style="background-color:#A8A8A8"> </td>
</tr>
ERROR HERE --> {% else %}
{% for i in range5 %}
{% with .. %}
{% if .. %}
<tr>
<td>></td>
</tr>
{% else %}
<tr>
<td style="background-color:#A8A8A8"> </td>
</tr>
{% endif %}
{% endwith %}
{% endfor %}
{% endifequal %}