more templates

This commit is contained in:
Sebastian Frank
2019-02-12 15:43:11 +01:00
parent 223af0a42f
commit d981a0550e
4 changed files with 68 additions and 9 deletions

View File

@@ -186,6 +186,8 @@ func readContentDir(inBase string, outBase string, dir string, conf *PathConfig,
stripedDir = regex.ReplaceAllString(stripedDir, "$1")
}
}
regex := regexp.MustCompile("[^a-zA-Z]")
stripedDir = regex.ReplaceAllString(stripedDir, "_")
outPath := outBase + "/" + stripedDir
outPath = path.Clean(outPath)