소스 검색

Fixes bug in HTMLDebug

Manu Mtz-Almeida 10 년 전
부모
커밋
880dd7f3cf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      render/html.go

+ 1 - 1
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")
 }