Merge pull request #22 from SnoFox/jj-fix-templates-in-subdirs
Don't create a blank template when parsing templates
This commit is contained in:
commit
a17a114360
@ -104,7 +104,7 @@ func processTemplate(params []string, conf *config) (err error) {
|
|||||||
log.Printf("process template %s to %s", srcPathAbs, dstPathAbs)
|
log.Printf("process template %s to %s", srcPathAbs, dstPathAbs)
|
||||||
}
|
}
|
||||||
|
|
||||||
t, err := template.New(srcPath).ParseFiles(srcPathAbs)
|
t, err := template.ParseFiles(srcPathAbs)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user