handle wrr differently
This commit is contained in:
parent
5691df5ac0
commit
5df2e006e0
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue