-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Is there an obvious way to set jinja2 environment attributes? #1147
Comments
Ok, it IS pretty obvious: Jinja2Template.settings = { |
Ok, thats how you add extension on bottlepy Jinja2 env. I actually want to set some attributes on JInja2 Environment: For instance this is the process described on jinja-assets-compressor: env = jinja2.Environment(extensions=[CompressorExtension]) With bottle we can replace the first line with: bottle.Jinja2Template.settings = { But so far i was unable to replace the other lines? any suggertsions? |
I want to use jinja-assets-compressor in our bottlepy based platform.
Is there an easy way to override default Bottle Jinja Environment?
The text was updated successfully, but these errors were encountered: