Skip to content

templ capability

templ adds type-safe HTML templating to your Go service using the templ library for server-rendered components.

  • templ setup
  • Layout components
  • Page templates
  • Hot reload configuration

Use templ for server-rendered web applications where you want Go’s type system to catch template errors at compile time. Pairs with htmx for dynamic partial rendering without a JavaScript framework.

Requires: http-api

Suggests: htmx, static-assets

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

htmx

HTMX for server-driven interactivity with templ partials.

static-assets

Serve CSS, JS, and images alongside templ pages.

i18n

Internationalization for multi-language templ templates.