Commit 4bcbc588 authored by astaxie's avatar astaxie

fix #260

parent 5f4fe6d8
...@@ -162,7 +162,7 @@ func getTplDeep(root, file string, t *template.Template) (*template.Template, [] ...@@ -162,7 +162,7 @@ func getTplDeep(root, file string, t *template.Template) (*template.Template, []
} else { } else {
relativefile := filepath.Join(filepath.Dir(file), m[1]) relativefile := filepath.Join(filepath.Dir(file), m[1])
if e, _ := FileExists(relativefile); e { if e, _ := FileExists(relativefile); e {
t, _, err = getTplDeep(root, m[1], t) t, _, err = getTplDeep(root, relativefile, t)
if err != nil { if err != nil {
return nil, [][]string{}, err return nil, [][]string{}, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment