Versions in this module Expand all Collapse all v0 v0.1.0 Nov 2, 2026 Changes in this version + const DefaultDebounce + const PathAssets + const PathWs + func DefaultHtmlPage(body string) string + func ToRef[T h.UI](target *T, elem T) T + type Compo struct + func (c *Compo) App() *h.Context + func (c *Compo) OnMount(ctx h.Context) + func (c *Compo) PageName() string + func (c *Compo) Update() + type CompoLiveApi interface + Mach func() *am.Machine + PageName func() string + Update func() + type DomEvent struct + Button int + ClientX float64 + ClientY float64 + Code string + Data string + DeltaX float64 + DeltaY float64 + Event *am.Event + Handler string + Id string + Key string + Name string + Path string + ScrollLeft float64 + ScrollTop float64 + Type string + Value string + type Opts struct + Debounce time.Duration + DiffHtml bool + HtmlPage func(body string) string + Logger *slog.Logger + OriginPatterns []string + Prefix string + type Page struct + Disposed atomic.Bool + func New[M CompoLiveApi](ctx context.Context, model M, opts Opts) (*Page[M], error) + func (p *Page[M]) Clients() int + func (p *Page[M]) Compo() M + func (p *Page[M]) Dispose() + func (p *Page[M]) HRefresh() + func (p *Page[M]) HTML() (string, bool) + func (p *Page[M]) NewHandler() http.Handler + func (p *Page[M]) Push() + func (p *Page[M]) Refresh(ctx context.Context)