added one more rule in the coding standards (closes #587)

This commit is contained in:
Fabien Potencier
2012-01-09 08:04:17 +01:00
parent e67d976fce
commit b019019485
+13 -2
View File
@@ -13,8 +13,8 @@ standards:
{# comment #}
{% if foo %}{% endif %}
When using the whitespace control character, Do not put any spaces between it
and the delimiter:
When using the whitespace control character, do not put any spaces between
it and the delimiter:
.. code-block:: jinja
@@ -88,3 +88,14 @@ standards:
{% set foo = 'foo' %}
{% set foo_bar = 'foo' %}
* Indent your code inside tags (use the same indentation as the one used for
the main language of the file):
.. code-block:: jinja
{% block foo %}
{% if true %}
true
{% endif %}
{% endblock %}