7c3d1d34 by astaxie

fix type HasTemplateEXt to HasTemplateExt

1 parent e4816718
...@@ -68,7 +68,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error { ...@@ -68,7 +68,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error {
68 if f.IsDir() || (f.Mode()&os.ModeSymlink) > 0 { 68 if f.IsDir() || (f.Mode()&os.ModeSymlink) > 0 {
69 return nil 69 return nil
70 } 70 }
71 if !HasTemplateEXt(paths) { 71 if !HasTemplateExt(paths) {
72 return nil 72 return nil
73 } 73 }
74 74
...@@ -88,7 +88,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error { ...@@ -88,7 +88,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error {
88 return nil 88 return nil
89 } 89 }
90 90
91 func HasTemplateEXt(paths string) bool { 91 func HasTemplateExt(paths string) bool {
92 for _, v := range BeeTemplateExt { 92 for _, v := range BeeTemplateExt {
93 if strings.HasSuffix(paths, "."+v) { 93 if strings.HasSuffix(paths, "."+v) {
94 return true 94 return true
...@@ -164,7 +164,7 @@ func getTplDeep(root, file, parent string, t *template.Template) (*template.Temp ...@@ -164,7 +164,7 @@ func getTplDeep(root, file, parent string, t *template.Template) (*template.Temp
164 if tlook != nil { 164 if tlook != nil {
165 continue 165 continue
166 } 166 }
167 if !HasTemplateEXt(m[1]) { 167 if !HasTemplateExt(m[1]) {
168 continue 168 continue
169 } 169 }
170 t, _, err = getTplDeep(root, m[1], file, t) 170 t, _, err = getTplDeep(root, m[1], file, t)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!