diff options
Diffstat (limited to 'vendor/twig/twig/doc/filters/length.rst')
-rw-r--r-- | vendor/twig/twig/doc/filters/length.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/twig/twig/doc/filters/length.rst b/vendor/twig/twig/doc/filters/length.rst new file mode 100644 index 00000000..f79b9bdf --- /dev/null +++ b/vendor/twig/twig/doc/filters/length.rst | |||
@@ -0,0 +1,12 @@ | |||
1 | ``length`` | ||
2 | ========== | ||
3 | |||
4 | The ``length`` filters returns the number of items of a sequence or mapping, or | ||
5 | the length of a string: | ||
6 | |||
7 | .. code-block:: jinja | ||
8 | |||
9 | {% if users|length > 10 %} | ||
10 | ... | ||
11 | {% endif %} | ||
12 | |||