Tests
Test: broken-expression
Template
{% verbatim %}{{ x }{% endverbatim %}
Output Django v1.10.1
{{ x }
Output Jinja2 (error) v2.8.0
Encountered unknown tag 'verbatim'.
Output Liquid (error) v3.0.6
Liquid syntax error: Unknown tag 'verbatim'
Output Nunjucks (error) v2.5.0
[Line 1, Column 2]
unknown block tag: verbatim
Output Swig (error) v1.4.2
Unexpected tag "verbatim".
Output Twig v1.24.2
{{ x }
Output Twigjs v0.9.5
{{ x }
Test: broken-tag
Template
{% verbatim %}{% if im_broken }still work{% endverbatim %}
Output Django (error) v1.10.1
Unclosed tag on line 1: 'verbatim'. Looking for one of: endverbatim.
Output Jinja2 (error) v2.8.0
Encountered unknown tag 'verbatim'.
Output Liquid (error) v3.0.6
Liquid syntax error: Unknown tag 'verbatim'
Output Nunjucks (error) v2.5.0
[Line 1, Column 2]
unknown block tag: verbatim
Output Swig (error) v1.4.2
Unexpected tag "verbatim".
Output Twig v1.24.2
{% if im_broken }still work
Output Twigjs v0.9.5
{% if im_broken }still work
Test: comment
Template
{% verbatim %}{# test {% endverbatim %}
Output Jinja2 (error) v2.8.0
Encountered unknown tag 'verbatim'.
Output Liquid (error) v3.0.6
Liquid syntax error: Unknown tag 'verbatim'
Output Nunjucks (error) v2.5.0
[Line 1, Column 2]
unknown block tag: verbatim
Output Swig (error) v1.4.2
Unexpected tag "verbatim".
Output Twig v1.24.2
{# test
Output Twigjs v0.9.5
{# test
Test: multiline
Template
{% verbatim %}{{ varX }}{% endverbatim %}
{{ varY }}
{% verbatim %}
{{ varZ }}
{% endverbatim %}
Data
{
"varX": "value X",
"varY": "value Y",
"varZ": "value Z"
}
Output Django v1.10.1
{{ varX }}
value Y
{{ varZ }}
Output Jinja2 (error) v2.8.0
Encountered unknown tag 'verbatim'.
Output Liquid (error) v3.0.6
Liquid syntax error: Unknown tag 'verbatim'
Output Nunjucks (error) v2.5.0
[Line 2, Column 2]
unknown block tag: verbatim
Output Swig (error) v1.4.2
Unexpected tag "verbatim".
Output Twig v1.24.2
{{ varX }}
value Y
{{ varZ }}
Output Twigjs v0.9.5
{{ varX }}
value Y
{{ varZ }}
Test: multiple
Template
{% verbatim %}{{ varX }}{% endverbatim %}{{ varY }}{% verbatim %}{{ varZ }}{% endverbatim %}
Data
{
"varX": "value X",
"varY": "value Y",
"varZ": "value Z"
}
Output Django v1.10.1
{{ varX }}value Y{{ varZ }}
Output Jinja2 (error) v2.8.0
Encountered unknown tag 'verbatim'.
Output Liquid (error) v3.0.6
Liquid syntax error: Unknown tag 'verbatim'
Output Nunjucks (error) v2.5.0
[Line 1, Column 2]
unknown block tag: verbatim
Output Swig (error) v1.4.2
Unexpected tag "verbatim".
Output Twig v1.24.2
{{ varX }}value Y{{ varZ }}
Output Twigjs v0.9.5
{{ varX }}value Y{{ varZ }}
Test: nested-raw
Template
{% verbatim %}{% verbatim %}{{ x }{% endverbatim %}{% endverbatim %}
Output Django (error) v1.10.1
Invalid block tag on line 1: 'endverbatim'. Did you forget to register or load this tag?
Output Jinja2 (error) v2.8.0
Encountered unknown tag 'verbatim'.
Output Liquid (error) v3.0.6
Liquid syntax error: Unknown tag 'verbatim'
Output Nunjucks (error) v2.5.0
[Line 1, Column 2]
unknown block tag: verbatim
Output Swig (error) v1.4.2
Unexpected tag "verbatim".
Output Twig (error) v1.24.2
Unknown "endverbatim" tag.
Output Twigjs (error) v0.9.5
TypeError: Cannot read property 'forEach' of undefined
Test: tag
Template
{% verbatim %}hello {{ {% %} }}{% endverbatim %}
Output Django v1.10.1
hello {{ {% %} }}
Output Jinja2 (error) v2.8.0
Encountered unknown tag 'verbatim'.
Output Liquid (error) v3.0.6
Liquid syntax error: Unknown tag 'verbatim'
Output Nunjucks (error) v2.5.0
[Line 1, Column 2]
unknown block tag: verbatim
Output Swig (error) v1.4.2
Unexpected tag "verbatim".
Output Twig v1.24.2
hello {{ {% %} }}
Output Twigjs v0.9.5
hello {{ {% %} }}
Test: text
Template
{% verbatim %}abc{% endverbatim %}
Output Django v1.10.1
abc
Output Jinja2 (error) v2.8.0
Encountered unknown tag 'verbatim'.
Output Liquid (error) v3.0.6
Liquid syntax error: Unknown tag 'verbatim'
Output Nunjucks (error) v2.5.0
[Line 1, Column 2]
unknown block tag: verbatim
Output Swig (error) v1.4.2
Unexpected tag "verbatim".
Output Twig v1.24.2
abc
Output Twigjs v0.9.5
abc
Output Django v1.10.1