all repos — gomponents @ eb1d1f22b4a8b59d12e05b813eafcfa629a90df7

HTML components in pure Go

Fix code in readme (#69) Broken in #66.

Markus Wüstenberg
commit

eb1d1f22b4a8b59d12e05b813eafcfa629a90df7

parent

6f3eea403af34faa3e87d617c73fb916b6a5f3c9

1 file changed, 3 insertions(+), 3 deletions(-)

changed files
M README.mdREADME.md
@@ -58,12 +58,12 @@ return Doctype(
HTML( Lang("en"), Head( - TitleEl(title), + TitleEl(g.Text(title)), StyleEl(Type("text/css"), g.Raw(".is-active{ font-weight: bold }")), ), Body( Navbar(currentPath), - H1(title), + H1(g.Text(title)), P(g.Textf("Welcome to the page at %v.", currentPath)), ), ),
@@ -115,7 +115,7 @@ StyleEl(Type("text/css"), g.Raw(".is-active{ font-weight: bold }")),
}, Body: []g.Node{ Navbar(currentPath), - H1(title), + H1(g.Text(title)), P(g.Textf("Welcome to the page at %v.", currentPath)), }, })