add list template
This commit is contained in:
1 parent
6751afdfde
commit
c67e110c7e
3 files changed
+43
-7
No files matched your search
@@ -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