import jinja2


def create_jinja2_template_env(searchpath: str = "./templates") -> jinja2.Environment:
    """
    Creates a usable template environment for Jinja2.
    """
    return jinja2.Environment(loader=jinja2.FileSystemLoader(searchpath=searchpath))