utils

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map[T any](transformer Transformer[T], elems ...T) htmx.Node

Map is a function that maps a transformer to a list of htmx.Node.

func Page

func Page(props PageProps, children ...htmx.Node) htmx.Node

Page is a component that renders a page with a title and a body.

func Panic

func Panic(err error) htmx.Node

Panic is a function that panics with the given error.

Types

type PageProps

type PageProps struct {
	htmx.HTML5Props
}

PageProps is the props for the Page component.

type Transformer

type Transformer[T any] func(el T) htmx.Node

Transformer is a function that transforms a node.

Jump to

Keyboard shortcuts

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