Jinja Compat Tests

Enabled engines

capitalize filter

Template

{{ items|capitalize }}

Data

{
  "items": [
    "my first car",
    "my Second car",
    "my THIRD car"
  ]
}

(error) v1.10.1

Invalid filter: 'capitalize'

v2.8.0

[u'my first car', u'my second car', u'my third car']

v3.0.6

["my first car", "my second car", "my third car"]

(error) v2.5.0


  TypeError: str.toLowerCase is not a function

v1.4.2

My first car,My second car,My third car

(error) v1.24.2

(no output)

v0.9.5

my first car,my Second car,my THIRD car

Template

{{ 'my First cAR'|capitalize }}

(error) v1.10.1

Invalid filter: 'capitalize'

v2.8.0

My first car

v3.0.6

My first car

v2.5.0

My first car

v1.4.2

My first car

v1.24.2

My first car

v0.9.5

My first car

Template

{{ 5|capitalize }}

(error) v1.10.1

Invalid filter: 'capitalize'

v2.8.0

5

v3.0.6

5

(error) v2.5.0


  TypeError: str.toLowerCase is not a function

v1.4.2

5

v1.24.2

5

v0.9.5

5

Template

{{ 'my first car'|capitalize }}

(error) v1.10.1

Invalid filter: 'capitalize'

v2.8.0

My first car

v3.0.6

My first car

v2.5.0

My first car

v1.4.2

My first car

v1.24.2

My first car

v0.9.5

My first car

Template

{{ '2nd car'|capitalize }}

(error) v1.10.1

Invalid filter: 'capitalize'

v2.8.0

2nd car

v3.0.6

2nd car

v2.5.0

2nd car

v1.4.2

2nd car

v1.24.2

2nd car

v0.9.5

2nd car

Template

{{ 'car'|capitalize }}

(error) v1.10.1

Invalid filter: 'capitalize'

v2.8.0

Car

v3.0.6

Car

v2.5.0

Car

v1.4.2

Car

v1.24.2

Car

v0.9.5

Car