HTML - Kodstandard
Indentation
- This need further internal debate, remember to take whitespace bugs into account.
Mixed:
- Use soft-tabs set to two spaces.
- No tabs allowed.
- Trim trailing white space on save.
- Set encoding to UTF-8.
- Add new line at end of files.
{% if some_twig_variable %}
<div class="the-shining">
<table>
<tr>
<td>All work</td>
<td>and no play makes</td>
<td>
{% if name == "Jack" %}
{{ name }}
{% else %}
Stanley
{% endif %}
</td>
<td>a dull {% if boy %}boy{% else %}girl{% endif %}</td>
</tr>
</table>
</div>
{% endif %}