From: Fabien Potencier Date: Mon, 9 Jan 2012 07:04:17 +0000 (+0100) Subject: added one more rule in the coding standards (closes #587) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=b019019485f7fc3d46ef5893342bf21608afb680;p=konrad%2Ftwig.git added one more rule in the coding standards (closes #587) --- diff --git a/doc/coding_standards.rst b/doc/coding_standards.rst index dc9e3d6..e0aab35 100644 --- a/doc/coding_standards.rst +++ b/doc/coding_standards.rst @@ -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 %}