~repos /gromer
git clone https://pyrossh.dev/repos/gromer.git
gromer is a framework and cli to build multipage web apps in golang using htmx and alpinejs.
Fix html lang
html.go
CHANGED
|
@@ -88,7 +88,7 @@ func (p *HtmlPage) computeCss(elems []*Element) {
|
|
|
88
88
|
|
|
89
89
|
func (p *HtmlPage) WriteHtml(w io.Writer) {
|
|
90
90
|
w.Write([]byte("<!DOCTYPE html>\n"))
|
|
91
|
-
w.Write([]byte("<html>\n"))
|
|
91
|
+
w.Write([]byte("<html lang=\"en\">\n"))
|
|
92
92
|
p.computeCss(p.Body.children)
|
|
93
93
|
p.Head.children = append(p.Head.children, StyleTag(Text(normalizeStyles+p.css.String())))
|
|
94
94
|
p.Head.writeHtmlIndent(w, 1)
|