55fe3ba5 by astaxie

update tempalte's regexp

1 parent de2dd6e0
...@@ -132,7 +132,7 @@ func getTplDeep(root, file string, t *template.Template) (*template.Template, er ...@@ -132,7 +132,7 @@ func getTplDeep(root, file string, t *template.Template) (*template.Template, er
132 if err != nil { 132 if err != nil {
133 return nil, err 133 return nil, err
134 } 134 }
135 reg := regexp.MustCompile("{{template \"(.+)\"") 135 reg := regexp.MustCompile("{{[ ]*template[ ]+\"([^\"]+)\"")
136 allsub := reg.FindAllStringSubmatch(string(data), -1) 136 allsub := reg.FindAllStringSubmatch(string(data), -1)
137 for _, m := range allsub { 137 for _, m := range allsub {
138 if len(m) == 2 { 138 if len(m) == 2 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!