"""Where Steward's templates live, for the guards that read every one.""" import pathlib import steward REPO = pathlib.Path(steward.__file__).parent.parent def template_files() -> list[pathlib.Path]: """Every first-party .html template: core and each plugin's.""" roots = [REPO / "steward" / "templates", *(REPO / "plugins").glob("*/templates")] return sorted(p for root in roots for p in root.rglob("*.html"))