Django Template Filter - join

Definition and Usage

The join filter takes all items in an iterable and joins them into one string.

A string must be specified as the separator.

Syntax

{{ value|join:separator }}

Template filters are defined by using a pipe | character followed by the name of the filter.

Arguments are defined by using a colon : character followed by the argument value(s).

Arguments

Value Description
separator Required. A string representing the separator.