fn: load_template
Purpose
Load a template and recursively expand `{% include "..." %}` partials.
Signature
def load_template(path: Path, templates_root: Path | None=None, _stack: tuple[Path, ...]=()) -> str:
Include paths are resolved from the site's template root, not from the current partial. This keeps includes predictable for constructs such as `{% include "partials/sidebar.html" %} in base.html`.
Usage
template_text = load_template(template_path, templates_root)
