Skip to content

src/dazzle_ui/runtime/template_renderer.py

Generated: 2026-03-30T04:38:49.298701+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_ui

Purpose

Jinja2 template renderer for server-rendered DNR pages.

Sets up the Jinja2 environment with custom filters, globals, and template loading from the templates/ directory.

Key Exports

  • create_jinja_env
  • get_jinja_env
  • configure_project_templates
  • render_page
  • render_site_page
  • render_fragment

Dependencies

Imports

  • __future__.annotations
  • datetime.date
  • datetime.datetime
  • pathlib.Path
  • typing.TYPE_CHECKING
  • typing.Any
  • jinja2.ChoiceLoader
  • jinja2.Environment
  • jinja2.FileSystemLoader
  • jinja2.PrefixLoader
  • jinja2.select_autoescape
  • markupsafe.Markup
  • dazzle_ui.runtime.template_context.PageContext
  • dazzle_ui.runtime.template_context.Site404Context
  • dazzle_ui.runtime.template_context.SiteAuthContext
  • dazzle_ui.runtime.template_context.SitePageContext
  • dazzle.core.ir.money.get_currency_scale
  • re
  • dazzle.__version__
  • dazzle_ui.runtime.asset_fingerprint.build_asset_manifest

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py
  • tests/unit/test_runtime_mcp_tools.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.