pub fn join(
state: &mut State<'_, '_>,
value: &Value,
joiner: Option<StringInput<'_>>,
attribute: Option<&str>,
kwargs: Kwargs,
) -> Result<Value, Error>Expand description
Joins a sequence by a character
The separator is passed as the first argument or as d. The
attribute argument can be set to an attribute or dotted path to
join that attribute of the items instead of the items themselves.
{{ "Foo Bar Baz" | join(", ") }} -> foo, bar, baz
{{ users|join(", ", attribute="username") }}