From e6ab2f73b6b43aaa14dd723bc8fe4a17fbcdb2a9 Mon Sep 17 00:00:00 2001 From: astaxie Date: Fri, 15 Mar 2013 20:37:05 +0800 Subject: [PATCH] fix window --- template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template.go b/template.go index 73210487..2a98dc52 100644 --- a/template.go +++ b/template.go @@ -143,7 +143,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error { replace := strings.NewReplacer("\\", "/") a := []byte(paths) a = a[len([]byte(self.root)):] - subdir := path.Dir(replace.Replace(strings.TrimLeft(string(a), "/"))) + subdir := path.Dir(strings.TrimLeft(replace.Replace(string(a)), "/")) if _, ok := self.files[subdir]; ok { self.files[subdir] = append(self.files[subdir], paths) } else {