From f26d81200b1f4dad9a08a3ee6f1790c4790db543 Mon Sep 17 00:00:00 2001 From: Xuyuan Pang Date: Tue, 30 Jul 2013 18:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/Quickstart.md | 2 +- docs/zh/Quickstart.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/Quickstart.md b/docs/en/Quickstart.md index b36f7dd4..5e821c1f 100644 --- a/docs/en/Quickstart.md +++ b/docs/en/Quickstart.md @@ -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 diff --git a/docs/zh/Quickstart.md b/docs/zh/Quickstart.md index d273645c..56a67926 100644 --- a/docs/zh/Quickstart.md +++ b/docs/zh/Quickstart.md @@ -405,7 +405,7 @@ main.go文件中设置如下: 模板中的数据是通过在Controller中`this.Data`获取的,所以如果你想在模板中获取内容`{{.Content}}`,那么你需要在Controller中如下设置: - this.Data["Context"] = "value" + this.Data["Content"] = "value" ### 模板名称