fix type HasTemplateEXt to HasTemplateExt
Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -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) | ... | ... |
-
Please register or sign in to post a comment