Skip to content

Join ​

Joins the items of an array into a string, with a separator between them. The default separator is a space.

liquid
{{ array | join: separator }}

Example ​

Data
json
{
  "tags": [
    "summer",
    "sale",
    "new"
  ]
}
liquid
{{ tags | join: ', ' }}

Output

html
summer, sale, new