Skip to content

src/dazzle_ui/runtime/static_preview.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_ui

Purpose

Static preview generator.

Generates self-contained HTML files from an AppSpec that can be opened in a browser without a running server. Uses mock data and inlines all CSS/JS dependencies via CDN links.

Key Exports

  • generate_preview_files

Dependencies

Imports

  • __future__.annotations
  • pathlib.Path
  • typing.TYPE_CHECKING
  • dazzle.core.ir
  • dazzle.core.ir.SurfaceMode
  • dazzle_ui.converters.template_compiler.compile_surface_to_context
  • dazzle_ui.runtime.mock_data.generate_mock_records
  • dazzle_ui.runtime.template_renderer.render_page

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.