Modifier: join


Turn an array into a string by gluing together all the data with any specified delimiter. It uses a comma by default.

tasks:
  - take a shower
  - brush hair
  - clip toenails
{{ tasks | join }}
{{ tasks join=" + " }} = ready
take a shower, brush hair, clip toenails
take a shower + brush hair + clip toenails = ready

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016