We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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:
Ok, it IS pretty obvious:
Jinja2Template.settings = { 'extensions': [CompressorExtension] }
Sorry, something went wrong.
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]) env.compressor_output_dir = './static/dist' env.compressor_static_prefix = '/static' env.compressor_source_dirs = './static_files'
With bottle we can replace the first line with:
bottle.Jinja2Template.settings = { 'extensions': [CompressorExtension] }
But so far i was unable to replace the other lines? any suggertsions?
No branches or pull requests
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: