Skip to content

src/dazzle_back/runtime/response_helpers.py

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

Commit: 615f1354a103

Language: python

Scope: dazzle_back

Purpose

HTMX OOB swap response helpers.

Provides utilities for appending out-of-band HTML fragments to any HTMLResponse, enabling server-driven toasts, breadcrumbs, and other UI updates without client-side logic.

Key Exports

  • with_toast
  • with_oob

Dependencies

Imports

  • __future__.annotations
  • html.escape
  • starlette.responses.HTMLResponse

Event Interactions

None detected.

Invariants and Assumptions

No invariants documented.

Tests

  • tests/unit/test_response_helpers.py
  • 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

Notes

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