handle wrr differently

This commit is contained in:
tavo 2025-07-01 11:32:37 -06:00
parent 5691df5ac0
commit 5df2e006e0

View file

@ -61,7 +61,6 @@ func initTemplates(viewFS embed.FS, viewMap map[string][]string, funcMap map[str
func RenderHTML(w http.ResponseWriter, r *http.Request, name string, data any) error { func RenderHTML(w http.ResponseWriter, r *http.Request, name string, data any) error {
tmpl, ok := TemplateCache[name] tmpl, ok := TemplateCache[name]
if !ok { if !ok {
http.Error(w, "template not found: "+name, http.StatusNotFound)
return fmt.Errorf("template %q not found", name) return fmt.Errorf("template %q not found", name)
} }