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:
Alex Yatskov 2017-09-05 11:39:26 -07:00 committed by GitHub
commit a17a114360

View File

@ -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
} }