Documentation ¶
Overview ¶
Package builder provides helpers for constructing VNodes
A common pattern is to define shorthands for these in the package that does your app's rendering. For example:
``` import (
"zenhack.net/go/tea/vdom" "zenhack.net/go/tea/vdom/builder"
)
type (
a = builder.A e = builder.E
)
var (
h = builder.H t = builder.T
)
func view() vdom.VNode { return h("a", a{"href": "/"}, nil, t("home")) }
```
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.