Jinja Compat Tests

Enabled engines

raw tag

Template

{% raw %}{{ x }{% endraw %}

(error) v1.10.1

Invalid block tag on line 1: 'raw'. Did you forget to register or load this tag?

v2.8.0

{{ x }

v3.0.6

{{ x }

v2.5.0

{{ x }

v1.4.2

{{ x }

v1.24.2

{{ x }

v0.9.5

{{ x }

Template

{% raw %}{% if im_broken }still work{% endraw %}

(error) v1.10.1

Invalid block tag on line 1: 'raw'. Did you forget to register or load this tag?

v2.8.0

{% if im_broken }still work

v3.0.6

{% if im_broken }still work

v2.5.0

{% if im_broken }still work

v1.4.2

{% if im_broken }still work{% endraw %}

v1.24.2

{% if im_broken }still work

v0.9.5

{% if im_broken }still work

Template

{% raw %}{# test {% endraw %}

(error) v1.10.1

Invalid block tag on line 1: 'raw'. Did you forget to register or load this tag?

v2.8.0

{# test 

v3.0.6

{# test 

v2.5.0

{# test 

v1.4.2

{# test 

v1.24.2

{# test 

v0.9.5

{# test

Template


{% raw %}{{ varX }}{% endraw %}
{{ varY }}
{% raw %}
    {{ varZ }}
{% endraw %}

Data

{
  "varX": "value X",
  "varY": "value Y",
  "varZ": "value Z"
}

(error) v1.10.1

Invalid block tag on line 2: 'raw'. Did you forget to register or load this tag?

v2.8.0


{{ varX }}
value Y

    {{ varZ }}

v3.0.6


{{ varX }}
value Y

    {{ varZ }}

v2.5.0


{{ varX }}
value Y

    {{ varZ }}

v1.4.2


{{ varX }}
value Y

    {{ varZ }}

v1.24.2


{{ varX }}
value Y

    {{ varZ }}

v0.9.5


{{ varX }}
value Y
{{ varZ }}

Template

{% raw %}{{ varX }}{% endraw %}{{ varY }}{% raw %}{{ varZ }}{% endraw %}

Data

{
  "varX": "value X",
  "varY": "value Y",
  "varZ": "value Z"
}

(error) v1.10.1

Invalid block tag on line 1: 'raw'. Did you forget to register or load this tag?

v2.8.0

{{ varX }}value Y{{ varZ }}

v3.0.6

{{ varX }}value Y{{ varZ }}

v2.5.0

{{ varX }}value Y{{ varZ }}

v1.4.2

{{ varX }}value Y{{ varZ }}

v1.24.2

{{ varX }}value Y{{ varZ }}

v0.9.5

{{ varX }}value Y{{ varZ }}

Template

{% raw %}{% raw %}{{ x }{% endraw %}{% endraw %}

(error) v1.10.1

Invalid block tag on line 1: 'raw'. Did you forget to register or load this tag?

(error) v2.8.0

Encountered unknown tag 'endraw'.

(error) v3.0.6

Liquid syntax error: Unknown tag 'endraw'

v2.5.0

{% raw %}{{ x }{% endraw %}

(error) v1.4.2

Unexpected end of tag "raw".

(error) v1.24.2

Unknown "endraw" tag.

(error) v0.9.5

TypeError: Cannot read property 'forEach' of undefined
   
   
   
   
   
   
   

Template

{% raw %}hello {{ {% %} }}{% endraw %}

(error) v1.10.1

Invalid block tag on line 1: 'raw'. Did you forget to register or load this tag?

v2.8.0

hello {{ {% %} }}

v3.0.6

hello {{ {% %} }}

v2.5.0

hello {{ {% %} }}

v1.4.2

hello {{ {% %} }}

v1.24.2

hello {{ {% %} }}

v0.9.5

hello {{ {% %} }}

Template

{% raw %}abc{% endraw %}

(error) v1.10.1

Invalid block tag on line 1: 'raw'. Did you forget to register or load this tag?

v2.8.0

abc

v3.0.6

abc

v2.5.0

abc

v1.4.2

abc

v1.24.2

abc

v0.9.5

abc