Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TemplatePath = "./templates" AdditionalFuncs template.FuncMap Dev = false )
Functions ¶
func StaticContent ¶ added in v0.0.2
func StaticContent(url, dirname string)
Types ¶
type Context ¶
type Context struct {
Writer http.ResponseWriter
Request *http.Request
Template *template.Template
ContextData map[string]interface{}
}
func (*Context) SendString ¶ added in v0.0.3
func (*Context) SendTemplate ¶
func (c *Context) SendTemplate(data interface{})
type Handler ¶
type Handler struct {
Url string
Func HandlerFunc
TemplateFile string
LayoutFile string
}
type HandlerFunc ¶
type HandlerFunc func(c *Context)
type HandlerFuncSet ¶ added in v0.0.4
type HandlerFuncSet []HandlerFunc
var ( PreHandlerFuncs HandlerFuncSet PostHandlerFuncs HandlerFuncSet )
func (*HandlerFuncSet) Add ¶ added in v0.0.4
func (h *HandlerFuncSet) Add(handler HandlerFunc)
Click to show internal directories.
Click to hide internal directories.