Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstOrDefault ¶ added in v0.2.0
func FirstOrDefault[T any](def T, props ...T) T
Types ¶
type Attrs ¶
type Attrs struct {
templ.Attributes
}
Attrs wraps templ.Attributes and adds helper functions With pattern is used for literal chaining, since the structs are small
func (Attrs) AsTemplAttrs ¶
func (a Attrs) AsTemplAttrs() templ.Attributes
Returns templ attributes for html tags
Click to show internal directories.
Click to hide internal directories.