~repos /gromer

#golang#htmx#ssr

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.


8456622e Peter John

tag: v0.7.1

v0.7.1

4 years ago
Fix html lang
Files changed (1) hide show
  1. html.go +1 -1
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)