Commit ccbf116f authored by astaxie's avatar astaxie

Merge pull request #115 from Xuyuanp/master

笔误
parents 71173aa0 f26d8120
......@@ -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
......
......@@ -405,7 +405,7 @@ main.go文件中设置如下:
模板中的数据是通过在Controller中`this.Data`获取的,所以如果你想在模板中获取内容`{{.Content}}`,那么你需要在Controller中如下设置:
this.Data["Context"] = "value"
this.Data["Content"] = "value"
### 模板名称
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment