Skip to content

htmx capability

htmx adds HTMX integration to your Go service for dynamic UI interactions driven entirely by server-rendered HTML fragments.

  • HTMX response helpers
  • Partial rendering patterns
  • Swap configuration

Use htmx when you want interactive UIs without a JavaScript framework. HTMX sends AJAX requests and swaps HTML fragments returned by your Go handlers — the browser stays in sync with the server without a separate frontend build step.

Requires: http-api, templ

Suggests: static-assets

Terminal window
verikt new my-service --language go --cap http-api,templ,htmx
# or add to an existing service:
verikt add htmx

templ

Type-safe templates that render HTMX-swappable fragments.

static-assets

Serve the HTMX library and other static assets.

http-api

The Chi router foundation required by this capability.