change the name from TplNames to TplName

This commit is contained in:
astaxie 2016-01-07 18:38:43 +08:00
parent 5eb49ca0a6
commit 1f9de3a6e0
1 changed files with 1 additions and 1 deletions

2
new.go
View File

@ -237,7 +237,7 @@ type MainController struct {
func (c *MainController) Get() {
c.Data["Website"] = "beego.me"
c.Data["Email"] = "astaxie@gmail.com"
c.TplNames = "index.tpl"
c.TplName = "index.tpl"
}
`