join

Join array items with an optional separator.

Syntax

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

Example

01

Basic usage

InputTS
1{2  "tags": [3    "notes",4    "ideas",5    "books"6  ]7}
TemplateKNAP
1{{ tags | join:", " }}
OutputKNAP
1notes, ideas, books

Behavior

  • The default separator is a comma. Escaped newlines are supported.