Documentation ¶
Index ¶
- func Register(name, path string)
- func RegisterDefaultData(data map[string]interface{})
- func RegisterMulti(baseDir string, names map[string]string)
- func Render(w http.ResponseWriter, r *http.Request, name string, ...)
- func RenderHandler(name string, data ...map[string]interface{}) func(http.ResponseWriter, *http.Request)
- type D
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name, path string)
Register template by a name Placeholder {{lang}} will be replaced by config lang value
func RegisterDefaultData ¶
func RegisterDefaultData(data map[string]interface{})
func RegisterMulti ¶
func RenderHandler ¶
func RenderHandler(name string, data ...map[string]interface{}) func(http.ResponseWriter, *http.Request)
HTTP handler to use in URL router directly
Types ¶
Click to show internal directories.
Click to hide internal directories.