Unexport FileAndExt

If needed outside helpers, create an exported file path (FilePathAndExt?)  and/or a url version.
This commit is contained in:
Bjørn Erik Pedersen
2015-08-26 21:29:32 +02:00
parent fd2fc1d3ce
commit 5b90b388cb
3 changed files with 6 additions and 6 deletions

View File

@@ -260,7 +260,7 @@ func Uglify(in string) string {
return path.Clean(in) + ".html"
}
name, ext := FileAndExt(in, pb)
name, ext := fileAndExt(in, pb)
if name == "index" {
// /section/name/index.html -> /section/name.html
d := path.Dir(in)