I am encountering the following error when attempting to use jinja2 templates with django 1.8 "Encountered unknown tag 'with'".
The same template works fine on my flask application but when attempting to use the with functionality of jinja 2 I get that error.
inside of the jinja template
{% with %}
{% set vartest = 42 %}
{{ vartest }}
{% endwith %}
inside of my jinja2 environment customization
def environment(**options):
env = Environment(**options)
env.globals.update({
'static': staticfiles_storage.url,
'url_for': reverse,
'STATIC_URL': STATIC_URL
})
return env