about summary refs log tree commit diff stats
path: root/README.md
diff options
context:
space:
mode:
authorMarkus Wüstenberg2020-12-10 13:13:10 +0100
committerGitHub2020-12-10 13:13:10 +0100
commit100ae9e8308f380eeb3c6a5ea7a7e3277483aa43 (patch)
tree86176f9ef9393e6c06e7b8992b60176f1879fc3a /README.md
parenta76262652b227c95ce140f3698c46f59b79354ac (diff)
downloadgomponents-100ae9e8308f380eeb3c6a5ea7a7e3277483aa43.tar.lz
gomponents-100ae9e8308f380eeb3c6a5ea7a7e3277483aa43.tar.zst
gomponents-100ae9e8308f380eeb3c6a5ea7a7e3277483aa43.zip
Rename Document to Doctype (#54)
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index cd8a887..5a8a954 100644
--- a/README.md
+++ b/README.md
@@ -54,7 +54,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
 }
 
 func Page(title, currentPath string) g.Node {
-	return Document(
+	return Doctype(
 		HTML(
 			Lang("en"),
 			Head(
@@ -94,7 +94,7 @@ import (
 	"net/http"
 
 	g "github.com/maragudk/gomponents"
-	. "github.com/maragudk/gomponents/components"
+	c "github.com/maragudk/gomponents/components"
 	. "github.com/maragudk/gomponents/html"
 )
 
@@ -107,7 +107,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
 }
 
 func Page(title, currentPath string) g.Node {
-	return HTML5(HTML5Props{
+	return c.HTML5(c.HTML5Props{
 		Title:    title,
 		Language: "en",
 		Head: []g.Node{
@@ -129,7 +129,7 @@ func Navbar(currentPath string) g.Node {
 }
 
 func NavbarLink(href, name, currentPath string) g.Node {
-	return A(href, Classes{"is-active": currentPath == href}, g.Text(name))
+	return A(href, c.Classes{"is-active": currentPath == href}, g.Text(name))
 }
 ```