Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make jinja_options a dict rather than ImmutaleDict #3190

Merged
merged 2 commits into from May 18, 2019

Conversation

@EtiennePelletier
Copy link
Contributor

@EtiennePelletier EtiennePelletier commented May 7, 2019

This allows changing jinja environment options from the flask app:

app.jinja_options['undefined'] = jinja2.ChainableUndefined

The above example will be valid when Jinja2 v2.11 will be released (including pallets/jinja#997)

EtiennePelletier and others added 2 commits May 18, 2019
This allows changing jinja environment options from the flask app:
>>> app.jinja_options['undefined'] = jinja2.ChainableUndefined
clarify docs about when jinja_options can be modified
@davidism davidism added this to the 1.1.0 milestone May 18, 2019
@davidism davidism merged commit d0bfb06 into pallets:master May 18, 2019
12 checks passed
Loading
@EtiennePelletier EtiennePelletier deleted the jinja2-977 branch May 20, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants