all repos — gomponents @ 5da578cfdf717ff1465f729194c8192a00412881

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...)
}