1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 20:30:49 +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 {
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)