coco_pipe.report.engine ======================= .. py:module:: coco_pipe.report.engine .. autoapi-nested-parse:: Template Rendering Engine ========================= Manages the Jinja2 environment and template loading for the report module. Attributes ---------- .. autoapisummary:: coco_pipe.report.engine.MODULE_DIR coco_pipe.report.engine.TEMPLATE_DIR coco_pipe.report.engine._ENV Functions --------- .. autoapisummary:: coco_pipe.report.engine._create_env coco_pipe.report.engine.get_env coco_pipe.report.engine.render_template Module Contents --------------- .. py:data:: MODULE_DIR .. py:data:: TEMPLATE_DIR .. py:function:: _create_env() -> jinja2.Environment Create and configure the Jinja2 environment. .. py:data:: _ENV :type: Optional[jinja2.Environment] :value: None .. py:function:: get_env() -> jinja2.Environment Get or create the global Jinja2 environment. .. py:function:: render_template(template_name: str, **context: Any) -> str Render a specific template with the provided context. :param template_name: Name of the template file in `coco_pipe/report/templates/`. :type template_name: str :param \*\*context: Variables to pass to the template. :type \*\*context: dict :returns: Rendered HTML string. :rtype: str