-
-
Notifications
You must be signed in to change notification settings - Fork 995
templateing: jinja2: pass kwargs for environment #427
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
Comments
Yup I'm up for this. We'll want to Related to this is configuring We could just use |
I think it should just allow more easily to set the env altogether.
But it is also the only reason for requiring Not sure about backward compatibility with regard to removing I am using a quite customized version already myself, and that is fine, but wanted to provide this feedback anyway. |
+1 as well, since as currently stands it's not possible to change common fields such as |
I think it would be good to pass something like
env_kwargs
via https://github.com./blueyed/starlette/blob/24c135de71ac56a73f7f797258115941579155bf/starlette/templating.py#L51-L53.While you can change the env afterwards, it would allow Jinja2 to validate e.g.
enable_async
, and callload_extensions
etc.The text was updated successfully, but these errors were encountered: