This commit is contained in:
astaxie 2013-10-29 23:11:23 +08:00
parent 5f4fe6d868
commit 4bcbc588fc
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ func getTplDeep(root, file string, t *template.Template) (*template.Template, []
} else {
relativefile := filepath.Join(filepath.Dir(file), m[1])
if e, _ := FileExists(relativefile); e {
t, _, err = getTplDeep(root, m[1], t)
t, _, err = getTplDeep(root, relativefile, t)
if err != nil {
return nil, [][]string{}, err
}