Events (ghtmx)
event Name(typed params) declares a server-driven event
(FR-036/FR-037). The kebab-case wire name (user-created) is the only
listener token the compiler owns in hx-on:*/hx-on-* suffixes and
hx-trigger values (the ::/--/-htmx- shorthands stay in htmx's
own namespace); declarations generate the only HX-Trigger emission
symbols (ghtmxgen.EmitName*).
event ItemSaved(id string)
templ panel() {
<div hx-on:item-saved="refresh()">…</div>
}
AST: EventDeclaration.
Verified by: examples/events, examples/crud, conformance,
internal/analyzer.