src/dazzle_ui/runtime/htmx.py¶
Generated: 2026-03-30T04:38:49.053151+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_ui
Purpose¶
HTMX-aware response utilities.
Provides helpers for building HTMLResponse objects with HX-* headers for server-client event coordination (triggers, retarget, reswap, redirect).
This is the canonical location for HTMX presentation logic. The
dazzle_back.runtime.htmx_response module re-exports ...
Key Exports¶
HtmxDetailshtmx_responsehtmx_trigger_headersis_htmx_requesthtmx_error_responsejson_or_htmx_errorfrom_requestwants_partialwants_fragmentwants_drawer
Dependencies¶
Imports¶
__future__.annotationsjsondataclasses.dataclasstyping.Anyfastapi.responses.HTMLResponsefastapi.responses.JSONResponsedazzle_ui.runtime.template_renderer.render_fragment
Event Interactions¶
None detected.
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/unit/test_htmx_details.pytests/unit/test_ux_htmx_client.pytests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.