about summary refs log tree commit diff stats
path: root/el/content.go
diff options
context:
space:
mode:
authorHans Raaf2020-10-23 14:12:47 +0200
committerGitHub2020-10-23 14:12:47 +0200
commitc6c5fbd0f92667d9a98a232b455ea26180017e4d (patch)
tree1327d3a1e5ca0d1082a8c1f72c6bdbe92ed1d903 /el/content.go
parentc99025e6c569827aa5ca8fb3e16545f1b5f821f2 (diff)
downloadgomponents-c6c5fbd0f92667d9a98a232b455ea26180017e4d.tar.lz
gomponents-c6c5fbd0f92667d9a98a232b455ea26180017e4d.tar.zst
gomponents-c6c5fbd0f92667d9a98a232b455ea26180017e4d.zip
Add br and hr element helpers (#30)
Diffstat (limited to 'el/content.go')
-rw-r--r--el/content.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/el/content.go b/el/content.go
index 5a4bce9..a4bcd61 100644
--- a/el/content.go
+++ b/el/content.go
@@ -23,3 +23,11 @@ func Li(children ...g.Node) g.NodeFunc {
 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...)
+}