Documentation ¶
Index ¶
- Variables
- func EMPTY[T any](arr []T) bool
- func Render(w http.ResponseWriter, node NODE)
- func ServerSentNode(sse *toolbelt.ServerSentEventsHandler, n NODE) error
- type CLSS
- type HTML5Props
- type Highlight
- type NODE
- func ATTR_RAW(name string, value ...string) NODE
- func CENTERSVGTEXT(children ...NODE) NODE
- func CIRCLE(children ...NODE) NODE
- func CLSF(format string, args ...interface{}) NODE
- func COLSPAN(colspan int) NODE
- func CX(v float64) NODE
- func CY(v float64) NODE
- func DATA(name string, value ...string) NODE
- func DATAF(name, format string, args ...interface{}) NODE
- func DOMINANTBASELINE(v string) NODE
- func ERR(errs ...error) NODE
- func FILL(v string) NODE
- func GRP(children ...NODE) NODE
- func HEIGHT(v float64) NODE
- func HIGHLIGHT(language, code string, children ...NODE) NODE
- func ICON(name string, children ...NODE) NODE
- func IDF(format string, args ...interface{}) NODE
- func IDVT(id string) NODE
- func IF(cond bool, ifTrue NodeCb) NODE
- func IFCachedNode(cond bool, ifTrue NODE) NODE
- func LINE(children ...NODE) NODE
- func MAXI(max int) NODE
- func MAXLEN(max int) NODE
- func MINI(min int) NODE
- func MINLEN(min int) NODE
- func MiniAvatar(seed string, saturation, lightness uint8, colorCount, gridSize int, ...) NODE
- func MiniAvatarDefault(seed string, children ...NODE) NODE
- func PREJSON[T any](v T) NODE
- func PREPBJSON(m protoreflect.ProtoMessage) NODE
- func R(v float64) NODE
- func RANGE[T any](ts []T, cb func(item T) NODE) NODE
- func RANGEI[T any](ts []T, cb func(i int, item T) NODE) NODE
- func RECT(children ...NODE) NODE
- func ROWS(rows int) NODE
- func SAFE(text string) NODE
- func STEP(step int) NODE
- func STROKE(v string) NODE
- func STROKEWIDTH(v float64) NODE
- func STYLEF(format string, args ...interface{}) NODE
- func TERN(cond bool, ifTrue, ifFalse NodeCb) NODE
- func TERNCached(cond bool, ifTrue, ifFalse NODE) NODE
- func TEXT(children ...NODE) NODE
- func TEXTANCHOR(v string) NODE
- func TXT(text string) NODE
- func TXTF(format string, args ...interface{}) NODE
- func TXTI[T uint | uint8 | uint16 | uint32 | uint64 | int | int8 | int16 | int32 | int64](v T) NODE
- func VALUEI[T uint | uint8 | uint16 | uint32 | uint64 | int | int8 | int16 | int32 | int64](v T) NODE
- func VIEWBOX(x, y, w, h int) NODE
- func VIEWBOXF(x, y, w, h float64) NODE
- func ViewTransitionName(id string) NODE
- func WIDTH(v float64) NODE
- func X(v float64) NODE
- func X1(v float64) NODE
- func X2(v float64) NODE
- func Y(v float64) NODE
- func Y1(v float64) NODE
- func Y2(v float64) NODE
- type NODES
- type NodeCb
- type NodeFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( A = h.A ATTR = g.Attr DIV = h.Div BUTTON = h.Button SPAN = h.Span CLS = h.Class META = h.Meta NAME = h.Name CONTENT = h.Content LINK = h.Link REL = h.Rel CHARSET = h.Charset TITLE = h.TitleEl HEAD = h.Head HTML = h.HTML HTML5 = c.HTML5 DOCTYPE = h.Doctype BODY = h.Body LANG = h.Lang HR = h.Hr HREF = h.Href IMG = h.Img SRC = h.Src SCRIPT = h.Script LABEL = h.Label PLACEHOLDER = h.Placeholder TEXTAREA = h.Textarea SELECT = h.Select OPTION = h.Option TABLE = h.Table CAPTION = h.Caption THEAD = h.THead TBODY = h.TBody TR = h.Tr TH = h.Th TD = h.Td STYLE = h.StyleAttr DIALOG = h.Dialog REQUIRED = h.Required() DISABLED = h.Disabled() SELECTED = h.Selected() CHECKED = g.Attr("checked") DEFER = h.Defer() RAW = g.Raw H1 = h.H1 H2 = h.H2 H3 = h.H3 H4 = h.H4 H5 = h.H5 H6 = h.H6 P = h.P PRE = h.Pre CODE = h.Code UL = h.Ul LI = h.Li ID = h.ID ALT = h.Alt DETAILS = h.Details OPEN = ATTR("open") SUMMARY = h.Summary FORM = h.FormEl INPUT = h.Input FOR = h.For TYPE = h.Type VALUE = h.Value ACTION = h.Action METHOD = h.Method MIN = h.Min MAX = h.Max CANVAS = h.Canvas )
View Source
var (
HighlightDefaultStyle = "gruvbox"
)
View Source
var INTEGERTYPE = GRP( TYPE("number"), STEP(1), )
View Source
var SVG = h.SVG
Functions ¶
func Render ¶
func Render(w http.ResponseWriter, node NODE)
func ServerSentNode ¶ added in v0.0.22
func ServerSentNode(sse *toolbelt.ServerSentEventsHandler, n NODE) error
Types ¶
type HTML5Props ¶ added in v0.0.5
type HTML5Props = c.HTML5Props
type NODE ¶
func CENTERSVGTEXT ¶
func DOMINANTBASELINE ¶
func IFCachedNode ¶
func MiniAvatar ¶ added in v0.0.21
func MiniAvatarDefault ¶ added in v0.0.21
func PREPBJSON ¶
func PREPBJSON(m protoreflect.ProtoMessage) NODE
func STROKEWIDTH ¶
func TERNCached ¶
func TEXTANCHOR ¶
func ViewTransitionName ¶
Click to show internal directories.
Click to hide internal directories.