# join

Source: https://zotonic.com/docs/1620/join

URI: https://zotonic.com/id/1620

Language: en



Joins the elements of a list. Joins the elements of the input list together, separated by the argument.

For example:

```django
{{ value|join:", " }}
```

If the value is the list `["hello", "world"]` then the output will be `"hello, world"`.

It is possible to use a special separator between the last two elements of the list, for the list `[ "Jan", "Piet", "Klaas" ]` the following example:

```django
{{ list|join:", ":_"or" }} }}
```

Gives as result:

```django
Jan, Piet or Klaas
```

The spaces around the last separator are added by the filter.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1620?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1620?language=en>)
