Documentation ¶
Index ¶
- func Default(w http.ResponseWriter, r *http.Request, status int, name string, ...) error
- func HTML(w http.ResponseWriter, status int, name string, data map[string]interface{}) error
- func Init(funcs template.FuncMap, debug bool)
- type CachedTemplateExecutor
- type DebugTemplateExecutor
- type TemplateExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Default ¶
func Default(w http.ResponseWriter, r *http.Request, status int, name string, data map[string]interface{}) error
Default is shorthands for rendering template. This includes HTTP response writer and HTTP request object for calling helper funcs.
Types ¶
type CachedTemplateExecutor ¶
func (CachedTemplateExecutor) ExecuteTemplate ¶
func (e CachedTemplateExecutor) ExecuteTemplate(w io.Writer, name string, data interface{}) error
type DebugTemplateExecutor ¶
func (DebugTemplateExecutor) ExecuteTemplate ¶
func (e DebugTemplateExecutor) ExecuteTemplate(w io.Writer, name string, data interface{}) error
Click to show internal directories.
Click to hide internal directories.