Documentation
¶
Index ¶
- func A(args ...any) *h.Node
- func Abbr(args ...any) *h.Node
- func Action(v string) html.Attribute
- func Address(args ...any) *h.Node
- func Alt(v string) html.Attribute
- func Aria(name, val string) html.Attribute
- func Article(args ...any) *h.Node
- func Aside(args ...any) *h.Node
- func Attr(k, v string) html.Attribute
- func Autocomplete(v string) html.Attribute
- func Autofocus() html.Attribute
- func B(args ...any) *h.Node
- func Blockquote(args ...any) *h.Node
- func Body(args ...any) *h.Node
- func Br(args ...any) *h.Node
- func Button(args ...any) *h.Node
- func Caption(args ...any) *h.Node
- func Charset(v string) html.Attribute
- func Checked() html.Attribute
- func Cite(args ...any) *h.Node
- func Class(v ...string) html.Attribute
- func Code(args ...any) *h.Node
- func Col(args ...any) *h.Node
- func Colgroup(args ...any) *h.Node
- func Comment(data string) *h.Node
- func Content(v ...string) html.Attribute
- func Data(name, val string) html.Attribute
- func Dd(args ...any) *h.Node
- func Defer() html.Attribute
- func Details(args ...any) *h.Node
- func Dialog(args ...any) *h.Node
- func Disabled() html.Attribute
- func Div(args ...any) *h.Node
- func Dl(args ...any) *h.Node
- func Doctype(data string) *h.Node
- func Document(children ...*h.Node) *h.Node
- func Download(v string) html.Attribute
- func Dt(args ...any) *h.Node
- func Element(tag a.Atom, args ...any) *h.Node
- func Em(args ...any) *h.Node
- func Enctype(v string) html.Attribute
- func Fieldset(args ...any) *h.Node
- func Figcaption(args ...any) *h.Node
- func Figure(args ...any) *h.Node
- func Footer(args ...any) *h.Node
- func For(v string) html.Attribute
- func Form(args ...any) *h.Node
- func H1(args ...any) *h.Node
- func H2(args ...any) *h.Node
- func H3(args ...any) *h.Node
- func H4(args ...any) *h.Node
- func H5(args ...any) *h.Node
- func Head(args ...any) *h.Node
- func Header(args ...any) *h.Node
- func Height(v string) html.Attribute
- func Hidden() html.Attribute
- func Hr(args ...any) *h.Node
- func Href(v string) html.Attribute
- func Html(args ...any) *h.Node
- func HxBoost(v string) html.Attribute
- func HxConfirm(v string) html.Attribute
- func HxDelete(v string) html.Attribute
- func HxGet(v string) html.Attribute
- func HxPatch(v string) html.Attribute
- func HxPost(v string) html.Attribute
- func HxPushUrl(v string) html.Attribute
- func HxPut(v string) html.Attribute
- func HxReplaceUrl(v string) html.Attribute
- func HxSelect(v string) html.Attribute
- func HxSelectOob(v string) html.Attribute
- func HxSwap(v string) html.Attribute
- func HxSwapOob(v string) html.Attribute
- func HxTarget(v string) html.Attribute
- func HxTrigger(v string) html.Attribute
- func HxVals(v string) html.Attribute
- func I(args ...any) *h.Node
- func Id(v string) html.Attribute
- func If(cond bool, node *h.Node) *h.Node
- func Img(args ...any) *h.Node
- func Input(args ...any) *h.Node
- func Label(args ...any) *h.Node
- func LabelAttr(v string) html.Attribute
- func Lang(v string) html.Attribute
- func Legend(args ...any) *h.Node
- func Li(args ...any) *h.Node
- func Link(args ...any) *h.Node
- func Main(args ...any) *h.Node
- func Mark(args ...any) *h.Node
- func Max(v string) html.Attribute
- func Meta(args ...any) *h.Node
- func Method(v string) html.Attribute
- func Min(v string) html.Attribute
- func Multiple() html.Attribute
- func Name(v string) html.Attribute
- func Nav(args ...any) *h.Node
- func Ol(args ...any) *h.Node
- func Optgroup(args ...any) *h.Node
- func Option(args ...any) *h.Node
- func P(args ...any) *h.Node
- func Pattern(v string) html.Attribute
- func Placeholder(v string) html.Attribute
- func Pre(args ...any) *h.Node
- func Raw(data string) *h.Node
- func Readonly() html.Attribute
- func Rel(v string) html.Attribute
- func Required() html.Attribute
- func Role(v string) html.Attribute
- func Script(args ...any) *h.Node
- func Section(args ...any) *h.Node
- func Select(args ...any) *h.Node
- func Selected() html.Attribute
- func Size(v string) html.Attribute
- func Small(args ...any) *h.Node
- func Span(args ...any) *h.Node
- func Src(v string) html.Attribute
- func Step(v string) html.Attribute
- func Strong(args ...any) *h.Node
- func Style(args ...any) *h.Node
- func StyleAttr(v string) html.Attribute
- func Sub(args ...any) *h.Node
- func Summary(args ...any) *h.Node
- func Sup(args ...any) *h.Node
- func Table(args ...any) *h.Node
- func Target(v string) html.Attribute
- func Tbody(args ...any) *h.Node
- func Td(args ...any) *h.Node
- func Text(data string) *h.Node
- func Textarea(args ...any) *h.Node
- func Tfoot(args ...any) *h.Node
- func Th(args ...any) *h.Node
- func Thead(args ...any) *h.Node
- func Title(args ...any) *h.Node
- func TitleAttr(v string) html.Attribute
- func Tr(args ...any) *h.Node
- func Type(v string) html.Attribute
- func Ul(args ...any) *h.Node
- func Value(v string) html.Attribute
- func Width(v string) html.Attribute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Autocomplete ¶
func Blockquote ¶
func Element ¶
Element constructs an HTML element node with the given tag and variadic args.
Supported arg types:
- h.Attribute: added or merged into the element's attributes. When a key has a join strategy (see mergeAttrMap), values are combined instead of replaced.
- *h.Node: appended as a child of the created element. CONTRACT: The passed node must be detached — i.e. n.Parent == nil, n.PrevSibling == nil, and n.NextSibling == nil. This mirrors golang.org/x/net/html.Node.AppendChild, which will panic if the child already has a parent or siblings. Detach the node from its current parent (e.g. parent.RemoveChild(n)) before passing it here, or clone it if you need to keep the original in place.
- string, *string, fmt.Stringer, error, or any other type: coerced to text via Text(...).
func Figcaption ¶
func HxReplaceUrl ¶
func HxSelectOob ¶
func Placeholder ¶
func Raw ¶
Raw creates a node with raw HTML content, bypassing any HTML escaping for the supplied input string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.