Documentation ¶
Index ¶
- type Application
- func (application *Application) ApplyDbMap(c *web.C, h http.Handler) http.Handler
- func (application *Application) ApplyTemplates(c *web.C, h http.Handler) http.Handler
- func (application *Application) Close()
- func (application *Application) Init()
- func (application *Application) LoadTemplates() error
- func (application *Application) Route(controller interface{}, route string) interface{}
- type Controller
- func (controller *Controller) GetDbMap(c web.C) *gorp.DbMap
- func (controller *Controller) GetSession(c web.C) *sessions.Session
- func (controller *Controller) GetTemplate(c web.C) *template.Template
- func (controller *Controller) IsXhr(c web.C) bool
- func (controller *Controller) Parse(t *template.Template, name string, data interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
func (*Application) ApplyDbMap ¶
func (*Application) ApplyTemplates ¶
Makes sure templates are stored in the context
func (*Application) Close ¶
func (application *Application) Close()
func (*Application) Init ¶
func (application *Application) Init()
func (*Application) LoadTemplates ¶
func (application *Application) LoadTemplates() error
func (*Application) Route ¶
func (application *Application) Route(controller interface{}, route string) interface{}
type Controller ¶
type Controller struct { }
func (*Controller) GetSession ¶
func (controller *Controller) GetSession(c web.C) *sessions.Session
func (*Controller) GetTemplate ¶
func (controller *Controller) GetTemplate(c web.C) *template.Template
Click to show internal directories.
Click to hide internal directories.