Jinja Compat Tests

Enabled engines

length filter

Template

{{ [1, 2, 3, 4]|length }}

(error) v1.10.1

Could not parse some characters: |[1, 2, 3, 4]||length

v2.8.0

4

(error) v3.0.6

(no output)

v2.5.0

4

(error) v1.4.2

Invalid filter "length".

v1.24.2

4

v0.9.5

4

Template

{{ 1234|length }}

v1.10.1

0

(error) v2.8.0

object of type 'int' has no len()

v3.0.6

1234

(error) v2.5.0

(no output)

(error) v1.4.2

Invalid filter "length".

v1.24.2

4

v0.9.5

0

Template

{{ { a: 1, b: 2, c: 3, d: 4 }|length }}

(error) v1.10.1

Could not parse some characters: |{ a: 1, b: 2, c: 3, d: 4 }||length

v2.8.0

1

(error) v3.0.6

Liquid syntax error: Variable '{{ { a: 1, b: 2, c: 3, d: 4 }' was not properly terminated with regexp: /\}\}/

v2.5.0

4

(error) v1.4.2

Invalid filter "length".

v1.24.2

4

v0.9.5

4

Template

{{ '1234'|length }}

v1.10.1

4

v2.8.0

4

v3.0.6

1234

v2.5.0

4

(error) v1.4.2

Invalid filter "length".

v1.24.2

4

v0.9.5

4