|
|
@@ -6,7 +6,6 @@ |
|
|
|
package context |
|
|
|
|
|
|
|
import ( |
|
|
|
"fmt" |
|
|
|
"html" |
|
|
|
"html/template" |
|
|
|
"io" |
|
|
@@ -148,7 +147,6 @@ func (ctx *Context) HTML(status int, name base.TplName) { |
|
|
|
func (ctx *Context) RenderWithErr(msg string, tpl base.TplName, form interface{}) { |
|
|
|
if form != nil { |
|
|
|
auth.AssignForm(form, ctx.Data) |
|
|
|
fmt.Printf("ctx:", form) |
|
|
|
} |
|
|
|
ctx.Flash.ErrorMsg = msg |
|
|
|
ctx.Data["Flash"] = ctx.Flash |
|
|
|