Jinja Compat Tests

Enabled engines

reserved-words expression

Template

{{ class }}

Data

{ "class": "class" }

v1.10.1

class

v2.8.0

class

v3.0.6

class

v2.5.0

class

(error) v1.4.2

SyntaxError: Unexpected token !==.

v1.24.2

class

v0.9.5

class

Template

{{ function }}

Data

{ "function": "function" }

v1.10.1

function

v2.8.0

function

v3.0.6

function

v2.5.0

function

(error) v1.4.2

Reserved keyword "function" attempted to be used as a variable.

v1.24.2

function

v0.9.5

function

Template

{{ in }}

Data

{ "in": "in" }

v1.10.1

in

v2.8.0

in

v3.0.6

in

v2.5.0

in

(error) v1.4.2

Reserved keyword "in" attempted to be used as a variable.

v1.24.2

in

(error) v0.9.5

TypeError: Cannot read property 'forEach' of undefined
   
   
   
   
   
   
   

Template

{{ var }}

Data

{ "var": "var" }

v1.10.1

var

v2.8.0

var

v3.0.6

var

v2.5.0

var

(error) v1.4.2

Reserved keyword "var" attempted to be used as a variable.

v1.24.2

var

v0.9.5

var

Template

{{ with }}

Data

{ "with": "with" }

v1.10.1

with

v2.8.0

with

v3.0.6

with

v2.5.0

with

(error) v1.4.2

Reserved keyword "with" attempted to be used as a variable.

v1.24.2

with

v0.9.5

with