Jinja Compat Tests

Enabled engines

first filter

Template

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

(error) v1.10.1

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

v2.8.0

1

(error) v3.0.6

(no output)

v2.5.0

1

v1.4.2

1

v1.24.2

1

v0.9.5

1

Template

{{ 1234|first }}

(error) v1.10.1

'int' object has no attribute '__getitem__'

(error) v2.8.0

'int' object is not iterable

(error) v3.0.6

(no output)

(error) v2.5.0

(no output)

v1.4.2

undefined

v1.24.2

1

(error) v0.9.5

(no output)

Template

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

(error) v1.10.1

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

v2.8.0

(error) v3.0.6

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

(error) v2.5.0

(no output)

v1.4.2

1

v1.24.2

1

v0.9.5

1

Template

{{ '1234'|first }}

v1.10.1

1

v2.8.0

1

(error) v3.0.6

(no output)

v2.5.0

1

v1.4.2

1

v1.24.2

1

v0.9.5

1