Jinja Compat Tests

Enabled engines

max function

Template

{{ max(numbers) }}

Data

{
  "numbers": [1, 3, 2]
}

(error) v1.10.1

Could not parse the remainder: '(numbers)' from 'max(numbers)'

(error) v2.8.0

'max' is undefined

(error) v3.0.6

(no output)

(error) v2.5.0


  Error: Unable to call `max`, which is undefined or falsey

(error) v1.4.2

(no output)

v1.24.2

3

v0.9.5

3

Template

{{ max(mapping) }}

Data

{
  "mapping": {
    "1": "b",
    "2": "e",
    "3": "a",
    "4": "c",
    "5": "d"
  }
}

(error) v1.10.1

Could not parse the remainder: '(mapping)' from 'max(mapping)'

(error) v2.8.0

'max' is undefined

(error) v3.0.6

(no output)

(error) v2.5.0


  Error: Unable to call `max`, which is undefined or falsey

(error) v1.4.2

(no output)

v1.24.2

e

v0.9.5

e

Template

{{ max(1, 3, 2) }}

(error) v1.10.1

Could not parse the remainder: '(1, 3, 2)' from 'max(1, 3, 2)'

(error) v2.8.0

'max' is undefined

(error) v3.0.6

(no output)

(error) v2.5.0


  Error: Unable to call `max`, which is undefined or falsey

(error) v1.4.2

(no output)

v1.24.2

3

v0.9.5

3