Browse Source

Made pathing platform agnostic

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

+ 1
- 1
templatebundle.go View File

@@ -63,7 +63,7 @@ func (t *TemplateBundle) importTemplateFileContentsForCog(templatesPath string,
63 63
 	if err := filepath.Walk(templateDirectory, func(path string, info os.FileInfo, err error) error {
64 64
 		if strings.HasSuffix(path, templateFileExtension) {
65 65
 			name := strings.TrimSuffix(strings.TrimPrefix(path, templateDirectory+string(os.PathSeparator)), TemplateFileExtension)
66
-			name = filepath.Join(prefixName, name)
66
+			name = prefixName + "/" + name
67 67
 			contents, err := ioutil.ReadFile(path)
68 68
 			t.items[name] = string(contents)
69 69