diff --git a/docs/en/Quickstart.md b/docs/en/Quickstart.md index b36f7dd4246c58fef5cc5c92d1665b40f454a5e3..5e821c1f2008cadf8a23a1604cf4766b5e9b6829 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 d273645c400552f4b56f2140c3955763ea348756..56a67926bcf01180eb2f2e72c2a69a245788fd50 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" ### 模板名称