add list template
This commit is contained in:
@@ -48,6 +48,12 @@ func (p *Context) BindData(i interface{}) error {
|
||||
return p.ShouldBindWith(i, b)
|
||||
}
|
||||
|
||||
// HTML -
|
||||
func (p *Context) HTML(tmpl string, data interface{}) {
|
||||
p.Context.HTML(http.StatusOK, tmpl, data)
|
||||
p.Abort()
|
||||
}
|
||||
|
||||
// Success -
|
||||
func (p *Context) Success(res ...interface{}) {
|
||||
var resBody interface{}
|
||||
|
||||
Reference in New Issue
Block a user