httk.web.templating.httk_compat =============================== .. py:module:: httk.web.templating.httk_compat Attributes ---------- .. autoapisummary:: httk.web.templating.httk_compat.LEGACY_TEMPLATE_SUFFIXES Classes ------- .. autoapisummary:: httk.web.templating.httk_compat.HttkCompatTemplateEngine Module Contents --------------- .. py:data:: LEGACY_TEMPLATE_SUFFIXES :type: tuple[str, Ellipsis] :value: ('.httkweb.html', '.html', '.html.j2', '.jinja', '.j2') .. py:class:: HttkCompatTemplateEngine(template_dir: pathlib.Path) Bases: :py:obj:`httk.web.templating.jinja2_engine.JinjaTemplateEngine` Legacy-oriented template resolution for old httkweb projects. The compatibility engine keeps Jinja rendering but prioritizes legacy template suffixes so old `.httkweb.html` files resolve first. .. py:method:: render(render_input: httk.web.templating.base.TemplateRenderInput) -> str .. py:method:: render_fragment(*, template_name: str, context: dict[str, object]) -> str | None