From b019019485f7fc3d46ef5893342bf21608afb680 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 9 Jan 2012 08:04:17 +0100 Subject: [PATCH] added one more rule in the coding standards (closes #587) --- doc/coding_standards.rst | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) 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 %} -- 1.7.2.5