Permalink
Browse files

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

  • Loading branch information...
1 parent e67d976 commit b019019485f7fc3d46ef5893342bf21608afb680 @fabpot committed Jan 9, 2012
Showing with 13 additions and 2 deletions.
  1. +13 −2 doc/coding_standards.rst
View
@@ -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 %}

0 comments on commit b019019

Please sign in to comment.