diff --git a/template.go b/template.go index 51d4a364..88224830 100644 --- a/template.go +++ b/template.go @@ -132,7 +132,7 @@ func getTplDeep(root, file string, t *template.Template) (*template.Template, er if err != nil { return nil, err } - reg := regexp.MustCompile("{{template \"(.+)\"") + reg := regexp.MustCompile("{{[ ]*template[ ]+\"([^\"]+)\"") allsub := reg.FindAllStringSubmatch(string(data), -1) for _, m := range allsub { if len(m) == 2 {