是否存在决定如何在模板中编写代码的编码风格?
这边走:
<tbody>
{% for row in body_rows %}
<tr>
{% for cell in row %}
<td>{{ cell.val }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
这个:
<tbody>
{% for row in body_rows %}
<tr>
{% for cell in row %}
<td>{{ cell.val }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
或这个:
<tbody>
{% for row in body_rows %}
<tr>
{% for cell in row %}
<td>{{ cell.val }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>