fix(webui): blank page regression; execute named templates (dashboard.tmpl, summarizer.tmpl) in render()

This commit is contained in:
Thomas Cravey 2025-08-17 13:20:17 -05:00
parent b993482b85
commit 3ed38031be
2 changed files with 2 additions and 2 deletions

View file

@ -43,5 +43,5 @@ func (s *Server) render(w http.ResponseWriter, name string, data map[string]any)
data["Title"] = strings.Title(base)
}
w.Header().Set("Content-Type", "text/html; charset=utf-8")
_ = tpl.ExecuteTemplate(w, base, data)
_ = tpl.ExecuteTemplate(w, name, data)
}

View file

@ -19,7 +19,7 @@
</ul>
</nav>
</header>
{{ template .Content . }}
{{ block "content" . }}{{ end }}
<footer><small>{{ .Version }} ({{ .Commit }})</small></footer>
</body>
</html>