mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-21 07:37:43 +00:00
refactored documentation
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
``length``
|
||||
==========
|
||||
|
||||
The ``length`` filters returns the number of items of a sequence or mapping, or
|
||||
the length of a string:
|
||||
|
||||
.. code-block:: jinja
|
||||
|
||||
{% if users|length > 10 %}
|
||||
...
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user