yera.runtime.handlers.targets.htmx

Compose handlers for the browser UI's HTMX rendering target.

Each factory is bound to the active web rendering context so handlers can emit HTML fragments and replace the shared input composer.

Symbols

def handlers — Return the block-type handler factories for the HTMX browser UI.

handlers

handlers(
    web_render: WebRenderContext,
) → dict[str, HandlerFactory]

Return the block-type handler factories for the HTMX browser UI.

Parameters

web_render
type: WebRenderContext

web render context to be used in the handlers.

Returns

type: dict[str, HandlerFactory]

A mapping from block type to a factory for its handler.