Tests
Test: array
Template
{{ min(numbers) }}
Data
{
"numbers": [1, 3, 2]
}
Output Django (error) v1.10.1
Could not parse the remainder: '(numbers)' from 'min(numbers)'
Output Jinja2 (error) v2.8.0
'min' is undefined
Output Liquid (error) v3.0.6
(no output)
Output Nunjucks (error) v2.5.0
Error: Unable to call `min`, which is undefined or falsey
Output Swig (error) v1.4.2
(no output)
Output Twig v1.24.2
1
Output Twigjs v0.9.5
1
Test: object
Template
{{ min(mapping) }}
Data
{
"mapping": {
"1": "b",
"2": "e",
"3": "a",
"4": "c",
"5": "d"
}
}
Output Django (error) v1.10.1
Could not parse the remainder: '(mapping)' from 'min(mapping)'
Output Jinja2 (error) v2.8.0
'min' is undefined
Output Liquid (error) v3.0.6
(no output)
Output Nunjucks (error) v2.5.0
Error: Unable to call `min`, which is undefined or falsey
Output Swig (error) v1.4.2
(no output)
Output Twig v1.24.2
a
Output Twigjs v0.9.5
a
Test: sequence
Template
{{ min(1, 3, 2) }}
Output Django (error) v1.10.1
Could not parse the remainder: '(1, 3, 2)' from 'min(1, 3, 2)'
Output Jinja2 (error) v2.8.0
'min' is undefined
Output Liquid (error) v3.0.6
(no output)
Output Nunjucks (error) v2.5.0
Error: Unable to call `min`, which is undefined or falsey
Output Swig (error) v1.4.2
(no output)
Output Twig v1.24.2
1
Output Twigjs v0.9.5
1