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:
parent
aade460f15
commit
af3c24c7df
1 changed files with 1 additions and 1 deletions
|
|
@ -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_"]
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue