projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b2e1675
)
Add docs
author
Jordi Boggiano
<j.boggiano@seld.be>
Fri, 13 Apr 2012 10:58:41 +0000 (12:58 +0200)
committer
Jordi Boggiano
<j.boggiano@seld.be>
Fri, 13 Apr 2012 10:58:41 +0000 (12:58 +0200)
doc/tests/array.rst
[new file with mode: 0644]
patch
|
blob
diff --git a/doc/tests/array.rst
b/doc/tests/array.rst
new file mode 100644
(file)
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 %}