Skip to content

jinja2_tools

jinja2_tools

Tools related to Jinja2 template engine.

get_cssfinder_jinja2_environment

get_cssfinder_jinja2_environment() -> jinja2.Environment

Get Jinja2 environment with default settings.

Source code in cssfinder/jinja2_tools.py
def get_cssfinder_jinja2_environment() -> jinja2.Environment:
    """Get Jinja2 environment with default settings."""
    return jinja2.Environment(
        loader=jinja2.PackageLoader("cssfinder"),
        autoescape=jinja2.select_autoescape(),
    )