Make jinja_options a dict rather than ImmutaleDict

This allows changing jinja environment options from the flask app:
>>> app.jinja_options['undefined'] = jinja2.ChainableUndefined
This commit is contained in:
EtiennePelletier 2019-05-07 17:28:50 -04:00 committed by David Lord
parent aade460f15
commit af3c24c7df
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8

View file

@ -299,7 +299,7 @@ class Flask(_PackageBoundObject):
json_decoder = json.JSONDecoder
#: Options that are passed directly to the Jinja2 environment.
jinja_options = ImmutableDict(
jinja_options = dict(
extensions=["jinja2.ext.autoescape", "jinja2.ext.with_"]
)