diff --git a/middleware/templates/templates.go b/middleware/templates/templates.go index 8361e465..14743ff3 100644 --- a/middleware/templates/templates.go +++ b/middleware/templates/templates.go @@ -49,7 +49,7 @@ func (t Templates) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error // Execute it var buf bytes.Buffer - err = bc.Template.Execute(&buf, ctx) + err = tpl.Execute(&buf, ctx) if err != nil { return http.StatusInternalServerError, err }