Security update for Core, with self-updated composer
[yaffs-website] / 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     {# outputs 1|2|3 #}
19
20 Arguments
21 ---------
22
23 * ``glue``: The separator