all repos — gomponents @ 8f17dba6f1268ab8c8810d7940d1484315cdb825

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
26
27
28
29
30
31
32
33
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...)
}

func Br(children ...g.Node) g.NodeFunc {
	return g.El("br", children...)
}

func Hr(children ...g.Node) g.NodeFunc {
	return g.El("hr", children...)
}