Configure custom Jinja globals and options while preparing Jinja environment.