Using Render() instead of Write()

This commit is contained in:
Manu Mtz-Almeida
2015-06-04 05:25:21 +02:00
parent 92475baba6
commit 1f56e50083
9 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func (r HTMLDebug) loadTemplate() *template.Template {
panic("the HTML debug render was created without files or glob pattern")
}
func (r HTML) Write(w http.ResponseWriter) error {
func (r HTML) Render(w http.ResponseWriter) error {
w.Header()["Content-Type"] = htmlContentType
if len(r.Name) == 0 {
return r.Template.Execute(w, r.Data)