Versions in this module Expand all Collapse all v0 v0.3.0 Nov 23, 2026 Changes in this version + const ScriptTag + type Broadcaster interface + Broadcast func() + ServeSSE func(eventName string) http.HandlerFunc + type HotReload struct + func NewHotReloader(debounceWindow time.Duration, hub Broadcaster) (*HotReload, error) + func (h *HotReload) Broadcast() + func (h *HotReload) Close() error + func (h *HotReload) InjectScript(body []byte) []byte + func (h *HotReload) Mount(mux *http.ServeMux) + func (h *HotReload) OnReload(fn func()) + func (h *HotReload) Run(ctx context.Context) + func (h *HotReload) WatchTree(root string) error + type Options struct + DebounceWindow time.Duration + RenderOpts func() (render.Options, error) + WatchRoot string + type Server struct + func New(opts Options) (*Server, error) + func (s *Server) Handler() http.Handler + func (s *Server) Register(ctx context.Context) error + func (s *Server) Shutdown(shutdownCtx context.Context) error v0.2.0 Nov 23, 2026