Documentation ¶
Index ¶
- func AssignForm(form interface{}, data map[string]interface{})
- func Contexter() macaron.Handler
- func GetSize(field reflect.StructField) string
- func I18n(key string) string
- func Validate(errs binding.Errors, data map[string]interface{}, f Form, l macaron.Locale) binding.Errors
- type Context
- func (ctx *Context) HTML(status int, name string)
- func (ctx *Context) HasError() bool
- func (ctx *Context) JSONWithoutEscape(status int, obj interface{})
- func (ctx *Context) NativeHTML(status int, name string)
- func (ctx *Context) NativeRenderWithErr(msg string, tpl string, userForm interface{})
- func (ctx *Context) RenderWithErr(msg string, tpl string, userForm interface{})
- type Form
- type Login
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignForm ¶
func AssignForm(form interface{}, data map[string]interface{})
AssignForm assign form values back to the template data.
Types ¶
type Context ¶
type Context struct { *macaron.Context Session session.Store Flash *session.Flash Cache cache.Cache Toolbox toolbox.Toolbox // contains filtered or unexported fields }
Context representation
func (*Context) JSONWithoutEscape ¶
JSONWithoutEscape render json without escape
func (*Context) NativeHTML ¶
NativeHTML render using go engine
func (*Context) NativeRenderWithErr ¶
NativeRenderWithErr render view and add error message using Go engine
func (*Context) RenderWithErr ¶
RenderWithErr render view and add error message using jade
Click to show internal directories.
Click to hide internal directories.