From 880dd7f3cf0723658825722a0d13d8d5a7badaac Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Thu, 21 May 2015 20:27:25 +0200 Subject: [PATCH] Fixes bug in HTMLDebug --- render/html.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/html.go b/render/html.go index 74f31a7c..de2320b8 100644 --- a/render/html.go +++ b/render/html.go @@ -46,7 +46,7 @@ func (r HTMLDebug) loadTemplate() *template.Template { return template.Must(template.ParseFiles(r.Files...)) } if len(r.Glob) > 0 { - return template.Must(template.ParseFiles(r.Files...)) + return template.Must(template.ParseGlob(r.Glob)) } panic("the HTML debug render was created without files or glob pattern") }