commit eabe8e1a986507ce19b42046beaefd42bd1075bc
parent 077d726b51368bb5affb7ce5644e5b45a0f9ea42
Author: bep <bjorn.erik.pedersen@gmail.com>
Date: Tue, 20 Jan 2015 13:21:50 +0100
Rename ignoreDotFile to isDotFile (which is what it is)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tpl/template.go b/tpl/template.go
@@ -1198,7 +1198,7 @@ func (t *GoHtmlTemplate) GenerateTemplateNameFrom(base, path string) string {
return filepath.ToSlash(name)
}
-func ignoreDotFile(path string) bool {
+func isDotFile(path string) bool {
return filepath.Base(path)[0] == '.'
}
@@ -1214,7 +1214,7 @@ func (t *GoHtmlTemplate) loadTemplates(absPath string, prefix string) {
}
if !fi.IsDir() {
- if ignoreDotFile(path) {
+ if isDotFile(path) {
return nil
}