Skip to content

src/dazzle_ui/runtime/site_context.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_ui

Purpose

Context builders for site page Jinja2 templates.

Converts raw sitespec dicts into typed Pydantic context models that are passed to Jinja2 templates for rendering.

Key Exports

  • build_site_page_context
  • build_site_auth_context
  • build_site_404_context
  • build_site_error_context

Dependencies

Imports

  • datetime.UTC
  • datetime.datetime
  • typing.Any
  • dazzle_ui.runtime.template_context.Site404Context
  • dazzle_ui.runtime.template_context.SiteAuthContext
  • dazzle_ui.runtime.template_context.SiteCTAContext
  • dazzle_ui.runtime.template_context.SiteErrorContext
  • dazzle_ui.runtime.template_context.SiteFooterColumn
  • dazzle_ui.runtime.template_context.SiteFooterLink
  • dazzle_ui.runtime.template_context.SiteNavItem
  • dazzle_ui.runtime.template_context.SiteOGMeta
  • dazzle_ui.runtime.template_context.SitePageContext

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.