html

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: BSD-2-Clause Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var A = makeNodeFunc("a")
View Source
var Action = makeAttribute("action")
View Source
var Body = makeNodeFunc("body")
View Source
var Button = makeNodeFunc("button")
View Source
var Charset = makeAttribute("charset")
View Source
var Class = makeAttribute("class")
View Source
var Div = makeNodeFunc("div")
View Source
var Footer = makeNodeFunc("footer")
View Source
var Form = makeNodeFunc("form")
View Source
var H1 = makeNodeFunc("h1")
View Source
var H2 = makeNodeFunc("h2")
View Source
var H3 = makeNodeFunc("h3")
View Source
var H4 = makeNodeFunc("h4")
View Source
var H5 = makeNodeFunc("h5")
View Source
var Head = makeNodeFunc("head")
View Source
var Hr = makeNodeFunc("hr")
View Source
var Href = makeAttribute("href")
View Source
var Html = makeNodeFunc("html")
View Source
var I = makeNodeFunc("i")
View Source
var Id = makeAttribute("id")
View Source
var Img = makeNodeFunc("img")
View Source
var Input = makeNodeFunc("input")
View Source
var Label = makeNodeFunc("label")
View Source
var Li = makeNodeFunc("li")
View Source
var Link = makeNodeFunc("link")
View Source
var Meta = makeNodeFunc("meta")
View Source
var Method = makeAttribute("method")
View Source
var Name = makeAttribute("name")
View Source
var Nav = makeNodeFunc("nav")
View Source
var Ol = makeNodeFunc("ol")
View Source
var Option = makeNodeFunc("option")
View Source
var P = makeNodeFunc("p")
View Source
var Path = makeNodeFunc("path")
View Source
var Pre = makeNodeFunc("pre")
View Source
var Script = makeNodeFunc("script")
View Source
var Select = makeNodeFunc("select")
View Source
var Source = makeNodeFunc("source")
View Source
var Span = makeNodeFunc("span")
View Source
var Src = makeAttribute("src")
View Source
var Style = makeNodeFunc("style")
View Source
var Svg = makeNodeFunc("svg")
View Source
var Table = makeNodeFunc("table")
View Source
var Tbody = makeNodeFunc("tbody")
View Source
var Td = makeNodeFunc("td")
View Source
var Textarea = makeNodeFunc("textarea")
View Source
var Th = makeNodeFunc("th")
View Source
var Thead = makeNodeFunc("thead")
View Source
var Title = makeNodeFunc("title")
View Source
var Tr = makeNodeFunc("tr")
View Source
var Track = makeNodeFunc("track")
View Source
var Type = makeAttribute("type")
View Source
var Ul = makeNodeFunc("ul")
View Source
var Value = makeAttribute("value")
View Source
var Video = makeNodeFunc("video")

Functions

func If

func If(condition bool) ifWrapper

Types

type Attribute

type Attribute struct {
	Name  string
	Value string
}

type Node

type Node struct {
	Attributes []Attribute
	// contains filtered or unexported fields
}

func Repeat

func Repeat(rows []db.Row, render func(db.Row) Node) []Node

func Text

func Text(text string) Node

func TextUnsafe

func TextUnsafe(text string) Node

func (Node) Accept

func (node Node) Accept(value string) Node

func (Node) Align

func (node Node) Align(value string) Node

func (*Node) Append

func (node *Node) Append(children ...Node)

func (Node) Attribute

func (node Node) Attribute(attributeName, value string) Node

func (Node) Autoplay

func (node Node) Autoplay() Node

func (Node) Children

func (node Node) Children(children ...Node) Node

func (Node) Content

func (node Node) Content(value string) Node

func (Node) Controls

func (node Node) Controls() Node

func (Node) D

func (node Node) D(value string) Node

func (Node) Default

func (node Node) Default() Node

func (Node) Fill

func (node Node) Fill(value string) Node

func (Node) For

func (node Node) For(value string) Node

func (Node) Height

func (node Node) Height(value uint) Node

func (Node) HeightFloat

func (node Node) HeightFloat(value float64) Node

func (Node) Kind

func (node Node) Kind(value string) Node

func (Node) Label

func (node Node) Label(value string) Node

func (Node) Media

func (node Node) Media(value string) Node

func (Node) Method

func (node Node) Method(value string) Node

func (Node) Multiple

func (node Node) Multiple() Node

func (Node) Placeholder

func (node Node) Placeholder(value string) Node

func (Node) Rel

func (node Node) Rel(value string) Node

func (Node) Selected

func (node Node) Selected(value string) Node

func (Node) Srclang

func (node Node) Srclang(value string) Node

func (Node) String

func (node Node) String() string

func (Node) Stroke

func (node Node) Stroke(value string) Node

func (Node) Text

func (node Node) Text(text string) Node

Text will excape any input as html

func (Node) TextUnsafe

func (node Node) TextUnsafe(text string) Node

Same as Text() but doesn't escape html

func (Node) Title

func (node Node) Title(value string) Node

func (Node) Width

func (node Node) Width(value uint) Node

func (Node) WidthFloat

func (node Node) WidthFloat(value float64) Node

func (Node) WriteTo

func (node Node) WriteTo(writer io.Writer) (int64, error)

Jump to

Keyboard shortcuts

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