Would it be possible to pass arguments to the underlying Jinja2 environment? I would like to activate the lstrip_blocks setting in the Jinja2 environment for more convenient whitespace trimming around code blocks. More about the Jinja API here: Jinja2 API