]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/doc/filters/join.rst
twig implementation
[github/wallabag/wallabag.git] / vendor / twig / twig / doc / filters / join.rst
1 ``join``
2 ========
3
4 The ``join`` filter returns a string which is the concatenation of the items
5 of a sequence:
6
7 .. code-block:: jinja
8
9 {{ [1, 2, 3]|join }}
10 {# returns 123 #}
11
12 The separator between elements is an empty string per default, but you can
13 define it with the optional first parameter:
14
15 .. code-block:: jinja
16
17 {{ [1, 2, 3]|join('|') }}
18 {# returns 1|2|3 #}
19
20 Arguments
21 ---------
22
23 * ``glue``: The separator