From: bep Date: Tue, 20 Jan 2015 12:21:50 +0000 (+0100) Subject: Rename ignoreDotFile to isDotFile (which is what it is) X-Git-Tag: v0.13~153 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eabe8e1a986507ce19b42046beaefd42bd1075bc;p=brevno-suite%2Fhugo Rename ignoreDotFile to isDotFile (which is what it is) --- diff --git a/tpl/template.go b/tpl/template.go index ac203af8..84a3fd14 100644 --- 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 }