1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-12 21:20:40 +00:00
This commit is contained in:
Xuyuan Pang
2013-07-30 18:52:54 +08:00
parent 4ee3d6aad4
commit f26d81200b
2 changed files with 2 additions and 2 deletions

View File

@ -338,7 +338,7 @@ To disable auto-render in `main.go`(before you call `beego.Run()` to run the app
You can use `this.Data` in controller methods to access the data in templates. Suppose you want to get content of `{{.Content}}`, you can use following code to do this:
this.Data["Context"] = "value"
this.Data["Content"] = "value"
### Template name