Jinja Compat Tests

Enabled engines

joiner function

Template

{% set separator = joiner(' |') %}
{% for item in items %}{{ separator() }} {{ item }}{% endfor %}

Data

{
  "items": ["alpha", "beta", "charlie"]
}

(error) v1.10.1

Invalid block tag on line 1: 'set'. Did you forget to register or load this tag?

v2.8.0


 alpha | beta | charlie

(error) v3.0.6

Liquid syntax error: Unknown tag 'set'

v2.5.0


 alpha | beta | charlie

(error) v1.4.2

(intermediate value)(intermediate value)(intermediate value) is not a function

(error) v1.24.2

Unknown "joiner" function.

(error) v0.9.5

TwigException: joiner function does not exist and is not defined in the context

Template

{% set separator = joiner() %}
{% for item in items %}{{ separator() }} {{ item }}{% endfor %}

Data

{
  "items": ["alpha", "beta", "charlie"]
}

(error) v1.10.1

Invalid block tag on line 1: 'set'. Did you forget to register or load this tag?

v2.8.0


 alpha,  beta,  charlie

(error) v3.0.6

Liquid syntax error: Unknown tag 'set'

v2.5.0


 alpha, beta, charlie

(error) v1.4.2

(intermediate value)(intermediate value)(intermediate value) is not a function

(error) v1.24.2

Unknown "joiner" function.

(error) v0.9.5

TwigException: joiner function does not exist and is not defined in the context