"""Template and static resource configuration.""" from pathlib import Path from fastapi.templating import Jinja2Templates PACKAGE_DIR = Path(__file__).resolve().parent TEMPLATE_DIR = PACKAGE_DIR / "templates" STATIC_DIR = PACKAGE_DIR / "static" templates = Jinja2Templates(directory=TEMPLATE_DIR)