Jinja Compat Tests

Enabled engines

cycler function

Template

{% set cls = cycler('odd', 'even') %}
{{ cls.next() }}
{{ cls.next() }}
{{ cls.current }}

(error) v1.10.1

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

v2.8.0


odd
even
odd

(error) v3.0.6

Liquid syntax error: Unknown tag 'set'

v2.5.0


odd
even
even

(error) v1.4.2

(no output)

(error) v1.24.2

Unknown "cycler" function. Did you mean "cycle"?

(error) v0.9.5

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

Template

{% set cls = cycler('odd', 'even') %}
{{ cls.next() }}
{{ cls.next() }}
{{ cls.next() }}

(error) v1.10.1

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

v2.8.0


odd
even
odd

(error) v3.0.6

Liquid syntax error: Unknown tag 'set'

v2.5.0


odd
even
odd

(error) v1.4.2

(no output)

(error) v1.24.2

Unknown "cycler" function. Did you mean "cycle"?

(error) v0.9.5

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

Template

{% set cls = cycler('odd', 'even') %}
{{ cls.next() }}
{{ cls.reset() }}
{{ cls.next() }}

(error) v1.10.1

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

v2.8.0


odd
None
odd

(error) v3.0.6

Liquid syntax error: Unknown tag 'set'

v2.5.0


odd

odd

(error) v1.4.2

(no output)

(error) v1.24.2

Unknown "cycler" function. Did you mean "cycle"?

(error) v0.9.5

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