Documentation
¶
Overview ¶
Package htmx simplifies working with HTMX, especially in combination with Templ.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Renderer ¶
type Renderer struct {
// OnError is synchronously called when rendering fails.
OnError func(error)
}
Renderer renders an HTMX template to an http.ResponseWriter.
type RenderingMode ¶
type RenderingMode int
RenderingMode indicates how to render the HTMX response.
const ( FullPage RenderingMode = iota PartialUpdate )
func RenderingModeFor ¶
func RenderingModeFor(r *http.Request) RenderingMode
RenderingModeFor returns the RenderingMode for an http.Request.
func (RenderingMode) String ¶
func (i RenderingMode) String() string
Click to show internal directories.
Click to hide internal directories.