From 7c3d1d3402c5c9dd24151a2e8f8cf9754a7a5f98 Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 19 Dec 2013 19:52:01 +0800 Subject: [PATCH] fix type HasTemplateEXt to HasTemplateExt --- template.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/template.go b/template.go index 31d34a75..1985c9a4 100644 --- a/template.go +++ b/template.go @@ -68,7 +68,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error { if f.IsDir() || (f.Mode()&os.ModeSymlink) > 0 { return nil } - if !HasTemplateEXt(paths) { + if !HasTemplateExt(paths) { return nil } @@ -88,7 +88,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error { return nil } -func HasTemplateEXt(paths string) bool { +func HasTemplateExt(paths string) bool { for _, v := range BeeTemplateExt { if strings.HasSuffix(paths, "."+v) { return true @@ -164,7 +164,7 @@ func getTplDeep(root, file, parent string, t *template.Template) (*template.Temp if tlook != nil { continue } - if !HasTemplateEXt(m[1]) { + if !HasTemplateExt(m[1]) { continue } t, _, err = getTplDeep(root, m[1], file, t)