Tests
Test: class
Template
{{ class }}
Data
{ "class": "class" }
Output Django v1.10.1
class
Output Jinja2 v2.8.0
class
Output Liquid v3.0.6
class
Output Nunjucks v2.5.0
class
Output Swig (error) v1.4.2
SyntaxError: Unexpected token !==.
Output Twig v1.24.2
class
Output Twigjs v0.9.5
class
Test: function
Template
{{ function }}
Data
{ "function": "function" }
Output Django v1.10.1
function
Output Jinja2 v2.8.0
function
Output Liquid v3.0.6
function
Output Nunjucks v2.5.0
function
Output Swig (error) v1.4.2
Reserved keyword "function" attempted to be used as a variable.
Output Twig v1.24.2
function
Output Twigjs v0.9.5
function
Test: in
Template
{{ in }}
Data
{ "in": "in" }
Output Django v1.10.1
in
Output Jinja2 v2.8.0
in
Output Liquid v3.0.6
in
Output Nunjucks v2.5.0
in
Output Swig (error) v1.4.2
Reserved keyword "in" attempted to be used as a variable.
Output Twig v1.24.2
in
Output Twigjs (error) v0.9.5
TypeError: Cannot read property 'forEach' of undefined
Test: var
Template
{{ var }}
Data
{ "var": "var" }
Output Django v1.10.1
var
Output Jinja2 v2.8.0
var
Output Liquid v3.0.6
var
Output Nunjucks v2.5.0
var
Output Swig (error) v1.4.2
Reserved keyword "var" attempted to be used as a variable.
Output Twig v1.24.2
var
Output Twigjs v0.9.5
var
Test: with
Template
{{ with }}
Data
{ "with": "with" }
Output Django v1.10.1
with
Output Jinja2 v2.8.0
with
Output Liquid v3.0.6
with
Output Nunjucks v2.5.0
with
Output Swig (error) v1.4.2
Reserved keyword "with" attempted to be used as a variable.
Output Twig v1.24.2
with
Output Twigjs v0.9.5
with