1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:10:54 +00:00

fix type HasTemplateEXt to HasTemplateExt

This commit is contained in:
astaxie 2013-12-19 19:52:01 +08:00
parent e481671814
commit 7c3d1d3402

View File

@ -68,7 +68,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error {
if f.IsDir() || (f.Mode()&os.ModeSymlink) > 0 { if f.IsDir() || (f.Mode()&os.ModeSymlink) > 0 {
return nil return nil
} }
if !HasTemplateEXt(paths) { if !HasTemplateExt(paths) {
return nil return nil
} }
@ -88,7 +88,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error {
return nil return nil
} }
func HasTemplateEXt(paths string) bool { func HasTemplateExt(paths string) bool {
for _, v := range BeeTemplateExt { for _, v := range BeeTemplateExt {
if strings.HasSuffix(paths, "."+v) { if strings.HasSuffix(paths, "."+v) {
return true return true
@ -164,7 +164,7 @@ func getTplDeep(root, file, parent string, t *template.Template) (*template.Temp
if tlook != nil { if tlook != nil {
continue continue
} }
if !HasTemplateEXt(m[1]) { if !HasTemplateExt(m[1]) {
continue continue
} }
t, _, err = getTplDeep(root, m[1], file, t) t, _, err = getTplDeep(root, m[1], file, t)