astaxie/beego — pull request #143 by miraclesu (2013-08-10 08:39:05+00:00)
Title: Add renderform template function

Usage:
struct defind:

type User struct {
Id int
tag string `form:tag`
Name interface{} `form:"username"`
Age int `form:"age,text"`
Email []string
Intro string `form:",textarea"`
}

controller:

```
func (this *AddController) Get() {
this.Data["form"] = beego.Form(&User{})
this.TplNames = "index.tpl"
}
```

template:

```

{{.Form | renderform}}

```