Skip to main content

Crate hotmeal_server

Crate hotmeal_server 

Source
Expand description

Server-side live-reload infrastructure for hotmeal.

Provides transport-agnostic HTML diffing and patch delivery. The core abstraction is LiveReloadServer, which caches HTML per route, diffs on change, and produces LiveReloadEvent messages that can be serialized and sent over any transport (WebSocket, SSE, etc.).

The client side lives in hotmeal-wasm which deserializes events and applies patches to a mount point in the browser DOM.

Structs§

LiveReloadServer
Server-side live-reload state.

Enums§

LiveReloadEvent
Events produced by the live-reload server.

Functions§

inject_into_head
Inject content after the opening <head> tag.
loader_script
Generate a <script> tag that loads hotmeal-wasm and starts live-reload.