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§
- Live
Reload Server - Server-side live-reload state.
Enums§
- Live
Reload Event - 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.