From: Jordi Boggiano Date: Fri, 13 Apr 2012 10:58:41 +0000 (+0200) Subject: Add docs X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=5fd2f98720a256e98222516f98d71ab6ef6d37bb;p=web%2Fkonrad%2Ftwig.git Add docs --- diff --git a/doc/tests/array.rst b/doc/tests/array.rst new file mode 100644 index 0000000..0bc46c4 --- /dev/null +++ b/doc/tests/array.rst @@ -0,0 +1,11 @@ +``array`` +========= + +``array`` checks if a variable is an array: + +.. code-block:: jinja + + {# evaluates to true if the foo variable is an array #} + {% if foo is array %} + ... + {% endif %}