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? 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
Hey @derks
I want to change some defaults for rendering:
jinja2_template_handler = app.handler.resolve('template','jinja2') jinja2_template_handler.env.trim_blocks = True
How ever I try to adjust my settings, even within a post_setup() hook, it does not reflect the rendering.
post_setup()
While debugging before line:
https://github.com/datafolklabs/cement/blob/main/cement/ext/ext_jinja2.py#L120
the value stays still on False.
False
When I apply my changes at:
https://github.com/datafolklabs/cement/blob/main/cement/ext/ext_jinja2.py#L96-L98
it works directly.
So what would you suppose where and how to change the env settings?
Btw. is there a reason you haven't allow a config part for this?
Kind regards Tom
The text was updated successfully, but these errors were encountered:
I created a derived extension for jinja2 and allow to do some config settings.
jinja2
If you like a PR for your main jinja2 let me know.
Sorry, something went wrong.
Link to source: https://github.com/tokeo/tokeo/blob/master/tokeo/ext/jinja2.py
No branches or pull requests
Hey @derks
I want to change some defaults for rendering:
How ever I try to adjust my settings, even within a
post_setup()
hook,it does not reflect the rendering.
While debugging before line:
https://github.com/datafolklabs/cement/blob/main/cement/ext/ext_jinja2.py#L120
the value stays still on
False
.When I apply my changes at:
https://github.com/datafolklabs/cement/blob/main/cement/ext/ext_jinja2.py#L96-L98
it works directly.
So what would you suppose where and how to change the env settings?
Btw. is there a reason you haven't allow a config part for this?
Kind regards
Tom
The text was updated successfully, but these errors were encountered: