src/dazzle_ui/converters/template_compiler.py¶
Generated: 2026-03-30T04:38:48.877146+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_ui
Purpose¶
Template compiler - converts Dazzle IR to template contexts.
Replaces the UISpec generation path for server-rendered pages. Converts SurfaceSpec + EntitySpec into PageContext/TableContext/FormContext that can be directly rendered by Jinja2 templates.
Key Exports¶
compile_surface_to_contextcompile_appspec_to_templates
Dependencies¶
Imports¶
__future__.annotationsloggingtyping.TYPE_CHECKINGtyping.Anydazzle.core.irdazzle.core.ir.FieldTypeKinddazzle.core.ir.SurfaceModedazzle.core.ir.money.CURRENCY_SCALESdazzle.core.ir.money.get_currency_scaledazzle.core.strings.to_api_pluraldazzle_ui.runtime.template_context.ColumnContextdazzle_ui.runtime.template_context.DetailContextdazzle_ui.runtime.template_context.ExternalLinkActiondazzle_ui.runtime.template_context.FieldContextdazzle_ui.runtime.template_context.FieldSourceContextdazzle_ui.runtime.template_context.FormContextdazzle_ui.runtime.template_context.FormSectionContextdazzle_ui.runtime.template_context.NavItemContextdazzle_ui.runtime.template_context.PageContextdazzle_ui.runtime.template_context.RelatedGroupContext
Event Interactions¶
None detected.
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/unit/test_template_compiler.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.