From 5da578cfdf717ff1465f729194c8192a00412881 Mon Sep 17 00:00:00 2001 From: Markus Wüstenberg Date: Fri, 25 Sep 2020 09:57:47 +0200 Subject: Group element helpers in different files (#21) According to the section at https://developer.mozilla.org/en-US/docs/Web/HTML/Element--- el/content.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 el/content.go (limited to 'el/content.go') diff --git a/el/content.go b/el/content.go new file mode 100644 index 0000000..5a4bce9 --- /dev/null +++ b/el/content.go @@ -0,0 +1,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...) +} -- cgit 1.4.1