all repos — gomponents @ c99025e6c569827aa5ca8fb3e16545f1b5f821f2

HTML components in pure Go

el/content.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package el

import (
	g "github.com/maragudk/gomponents"
)

func Div(children ...g.Node) g.NodeFunc {
	return g.El("div", children...)
}

func Ol(children ...g.Node) g.NodeFunc {
	return g.El("ol", children...)
}

func Ul(children ...g.Node) g.NodeFunc {
	return g.El("ul", children...)
}

func Li(children ...g.Node) g.NodeFunc {
	return g.El("li", children...)
}

func P(children ...g.Node) g.NodeFunc {
	return g.El("p", children...)
}