Documentation ¶
Index ¶
- func Contexter() macaron.Handler
- type Context
- func (c *Context) HTML(status int, name string)
- func (c *Context) Handle(status int, title string, err error)
- func (c *Context) HasError() bool
- func (c *Context) PageIs(name string)
- func (c *Context) RenderWithErr(msg string, tpl string, form interface{})
- func (c *Context) Success(name string)
- func (c *Context) Title(locale string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
Context represents context of a request.
func (*Context) RenderWithErr ¶
RenderWithErr used for page has form validation but need to prompt error to users.
Click to show internal directories.
Click to hide internal directories.