htmx

package
v0.0.0-...-4456b35 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

templ: version: v0.2.778

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTMXLocation

func HTMXLocation(w http.ResponseWriter, path string, target string)

func HTMXOOB

func HTMXOOB(id string, hx_swap_obb string, content templ.Component) templ.Component

func HTMXRedirectForOOB

func HTMXRedirectForOOB(path string, target string) templ.Component

Types

type HTMXHeaders

type HTMXHeaders struct {
	HXRequest    bool
	HXTarget     string
	HXCurrentURL HTMXHeadersCurrentURL
}

func ParseHTMXHeaders

func ParseHTMXHeaders(header http.Header) HTMXHeaders

func (*HTMXHeaders) IsHTMXRequest

func (h *HTMXHeaders) IsHTMXRequest() bool

type HTMXHeadersCurrentURL

type HTMXHeadersCurrentURL struct {
	Valid bool
	URL   *url.URL
}

Jump to

Keyboard shortcuts

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