Tests
Test: addition
Template
{{ 2 + 3 }}
Output Django (error) v1.10.1
Could not parse the remainder: ' + 3' from '2 + 3'
Output Jinja2 v2.8.0
5
Output Liquid v3.0.6
2
Output Nunjucks v2.5.0
5
Output Swig v1.4.2
5
Output Twig v1.24.2
5
Output Twigjs v0.9.5
5
Test: devision
Template
{{ 10/5 }}
Output Django (error) v1.10.1
Could not parse the remainder: '/5' from '10/5'
Output Jinja2 v2.8.0
2.0
Output Liquid (error) v3.0.6
(no output)
Output Nunjucks v2.5.0
2
Output Swig v1.4.2
2
Output Twig v1.24.2
2
Output Twigjs v0.9.5
2
Test: multiplication
Template
{{ 5*2 }}
Output Django (error) v1.10.1
Could not parse the remainder: '*2' from '5*2'
Output Jinja2 v2.8.0
10
Output Liquid (error) v3.0.6
(no output)
Output Nunjucks v2.5.0
10
Output Swig v1.4.2
10
Output Twig v1.24.2
10
Output Twigjs v0.9.5
10
Test: power
Template
{{ 2**3 }}
Output Django (error) v1.10.1
Could not parse the remainder: '**3' from '2**3'
Output Jinja2 v2.8.0
8
Output Liquid (error) v3.0.6
(no output)
Output Nunjucks v2.5.0
8
Output Swig (error) v1.4.2
SyntaxError: Unexpected token *.
Output Twig v1.24.2
8
Output Twigjs v0.9.5
8
Test: subtraction
Template
{{ 5 - 3 }}
Output Django (error) v1.10.1
Could not parse the remainder: ' - 3' from '5 - 3'
Output Jinja2 v2.8.0
2
Output Liquid v3.0.6
5
Output Nunjucks v2.5.0
2
Output Swig v1.4.2
2
Output Twig v1.24.2
2
Output Twigjs v0.9.5
2