mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
Add docs
This commit is contained in:
@@ -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 %}
|
||||||
Reference in New Issue
Block a user