Files
liquid/_filters/join.md
2021-04-28 13:43:02 -04:00

498 B

title, description
title description
join Liquid filter that joins an array of strings into a single string.

Combines the items in an array into a single string using the argument as a separator.

Input

```liquid {%- raw -%} {% assign beatles = "John, Paul, George, Ringo" | split: ", " %}

{{ beatles | join: " and " }} {% endraw %}


<p class="code-label">Output</p>
```text
{% assign beatles = "John, Paul, George, Ringo" | split: ", " %}

{{ beatles | join: " and " }}