join
Merge all elements of an array into a single string, with the default separator being ,.
Parameters
array{Array}: The array to join. required.[separator]{String}: The delimiter. Optional, defaults to,.returns{String}
Usage
{{join array}}
Examples
{{ join collection.all_tags }}
Custom Separator
You can merge the elements with a custom separator.
{{ join collection.all_tags "_" }}
Was this article helpful to you?