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.
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
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