diff --git a/doc/tests/array.rst b/doc/tests/array.rst new file mode 100644 index 000000000..0bc46c474 --- /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 %}