1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-24 19:50:55 +00:00

modify the template file

This commit is contained in:
asta.xie 2014-03-27 08:49:57 +08:00
parent c7437d7590
commit 2f4acf46c6

View File

@ -151,7 +151,7 @@ func getTplDeep(root, file, parent string, t *template.Template) (*template.Temp
fileabspath = filepath.Join(root, file) fileabspath = filepath.Join(root, file)
} }
if e := utils.FileExists(fileabspath); !e { if e := utils.FileExists(fileabspath); !e {
panic("can't find template file" + file) panic("can't find template file:" + file)
} }
data, err := ioutil.ReadFile(fileabspath) data, err := ioutil.ReadFile(fileabspath)
if err != nil { if err != nil {