examples/

directory
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: Apache-2.0

Directories

Path Synopsis
The task-67 reference CRUD application: the MVP acceptance demonstration.
The task-67 reference CRUD application: the MVP acceptance demonstration.
cmd command
Command crud serves the crud example standalone.
Command crud serves the crud example standalone.
The events example: event declarations in page.ghtmx generate the only emission symbols (ghtmxgen.EmitItemSaved, ghtmxgen.EmitCartCleared) — an undeclared event has no symbol and cannot compile (FR-037).
The events example: event declarations in page.ghtmx generate the only emission symbols (ghtmxgen.EmitItemSaved, ghtmxgen.EmitCartCleared) — an undeclared event has no symbol and cannot compile (FR-037).
cmd command
Command events serves the events example standalone.
Command events serves the events example standalone.
The fragments example: one fragment declaration serves both render modes.
The fragments example: one fragment declaration serves both render modes.
cmd command
Command fragments serves the fragments example standalone.
Command fragments serves the fragments example standalone.
The ghtmx walking skeleton: a minimal net/http application rendering a generated component, proving the full path from .ghtmx source to bytes in a browser (FR-090).
The ghtmx walking skeleton: a minimal net/http application rendering a generated component, proving the full path from .ghtmx source to bytes in a browser (FR-090).
cmd command
Command helloworld serves the hello-world example standalone.
Command helloworld serves the hello-world example standalone.
The htmx4-inheritance example: htmx 4 inherits no attribute unless the ancestor says so.
The htmx4-inheritance example: htmx 4 inherits no attribute unless the ancestor says so.
cmd command
Command htmx4inheritance serves the htmx4-inheritance example standalone.
Command htmx4inheritance serves the htmx4-inheritance example standalone.
ghtmxgen
Package ghtmxgen is the central generated package: route path constants and typed route constructors, regenerated by ghtmx generate from the application's own route registrations.
Package ghtmxgen is the central generated package: route path constants and typed route constructors, regenerated by ghtmx generate from the application's own route registrations.
The htmx4-query example: htmx 4 adds the QUERY method — safe and idempotent like GET, with the parameters in the body like POST — and morph swaps that update a region in place instead of replacing it.
The htmx4-query example: htmx 4 adds the QUERY method — safe and idempotent like GET, with the parameters in the body like POST — and morph swaps that update a region in place instead of replacing it.
cmd command
Command htmx4query serves the htmx4-query example standalone.
Command htmx4query serves the htmx4-query example standalone.
ghtmxgen
Package ghtmxgen is the central generated package: route path constants and typed route constructors, regenerated by ghtmx generate from the application's own route registrations.
Package ghtmxgen is the central generated package: route path constants and typed route constructors, regenerated by ghtmx generate from the application's own route registrations.
The htmx4-status example: htmx 4 swaps every response by default, and hx-status:<code> decides per status where it goes.
The htmx4-status example: htmx 4 swaps every response by default, and hx-status:<code> decides per status where it goes.
cmd command
Command htmx4status serves the htmx4-status example standalone.
Command htmx4status serves the htmx4-status example standalone.
ghtmxgen
Package ghtmxgen is the central generated package: route path constants and typed route constructors, regenerated by ghtmx generate from the application's own route registrations.
Package ghtmxgen is the central generated package: route path constants and typed route constructors, regenerated by ghtmx generate from the application's own route registrations.
The hx-bindings example exercises route-aware hx-* bindings end to end: a symbol binding folds a registered path into static markup, and a typed route constructor substitutes URL-escaped parameters (FR-020, FR-021, FR-023).
The hx-bindings example exercises route-aware hx-* bindings end to end: a symbol binding folds a registered path into static markup, and a typed route constructor substitutes URL-escaped parameters (FR-020, FR-021, FR-023).
cmd command
Command hxbindings serves the hx-bindings example standalone.
Command hxbindings serves the hx-bindings example standalone.
handlers
Package handlers holds the hx-bindings example's HTTP handlers.
Package handlers holds the hx-bindings example's HTTP handlers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL