Browse Source

Making pathing agnostic

Wirecog 6 years ago
parent
commit
71d291b77d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      templatebundle.go

+ 1
- 1
templatebundle.go View File

@@ -58,7 +58,7 @@ func (t *TemplateBundle) importTemplateFileContents(templatesPath string) error
58 58
 func (t *TemplateBundle) importTemplateFileContentsForCog(templatesPath string, prefixName string, templateFileExtension string) error {
59 59
 
60 60
 	templateDirectory := filepath.Clean(templatesPath)
61
-	RegisterStaticAssetsSearchPath(strings.Replace(templateDirectory, "/"+"templates", "", -1))
61
+	RegisterStaticAssetsSearchPath(strings.Replace(templateDirectory, string(os.PathSeparator)+"templates", "", -1))
62 62
 	//println("td: ", templateDirectory)
63 63
 	if err := filepath.Walk(templateDirectory, func(path string, info os.FileInfo, err error) error {
64 64
 		if strings.HasSuffix(path, templateFileExtension) {