Tests
Test: array
Template
{{ items|lower }}
Data
{
"items": [
"my first car",
"my Second car",
"my THIRD car"
]
}
Output Django v1.10.1
[u'my first car', u'my second car', u'my third car']
Output Jinja2 v2.8.0
[u'my first car', u'my second car', u'my third car']
Output Liquid v3.0.6
my first carmy Second carmy THIRD car
Output Nunjucks (error) v2.5.0
TypeError: str.toLowerCase is not a function
Output Swig v1.4.2
my first car,my second car,my third car
Output Twig (error) v1.24.2
(no output)
Output Twigjs v0.9.5
my first car,my Second car,my THIRD car
Test: number
Template
{{ 5|lower }}
Output Django v1.10.1
5
Output Jinja2 v2.8.0
5
Output Liquid v3.0.6
5
Output Nunjucks (error) v2.5.0
TypeError: str.toLowerCase is not a function
Output Swig v1.4.2
5
Output Twig v1.24.2
5
Output Twigjs v0.9.5
5
Test: string
Template
{{ 'My FIRST Car'|lower }}
Output Django v1.10.1
my first car
Output Jinja2 v2.8.0
my first car
Output Liquid v3.0.6
My FIRST Car
Output Nunjucks v2.5.0
my first car
Output Swig v1.4.2
my first car
Output Twig v1.24.2
my first car
Output Twigjs v0.9.5
my first car