Skip to content
Myr

Make jinja_options a dict rather than ImmutaleDict

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This allows changing jinja environment options from the flask app: >>> app.jinja_options['undefined'] = jinja2.ChainableUndefined

authored by EtiennePelletier · committed by David Lord · parent aade460 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/app.py+1 added-1 removed
297 unmodified lines
298 #: .. versionadded:: 0.10299 json_decoder = json.JSONDecoder300301 #: Options that are passed directly to the Jinja2 environment.302 jinja_options = ImmutableDict(302 jinja_options = dict(303 extensions=["jinja2.ext.autoescape", "jinja2.ext.with_"]304 )305306 #: Default configuration parameters.
2089 unmodified lines