Versions in this module Expand all Collapse all v1 v1.2.1 Jul 17, 2019 v1.1.1 Jun 12, 2019 Changes in this version + const DefaultLayout + const DefaultViewPath + type Config struct + AssetFileSystem assetfs.Interface + DefaultLayout string + FuncMapMaker func(render *Render, request *http.Request, writer http.ResponseWriter) template.FuncMap + ViewPaths []string + type Render struct + func New(config *Config, viewPaths ...string) *Render + func (render *Render) Asset(name string) ([]byte, error) + func (render *Render) Execute(name string, context interface{}, request *http.Request, ...) error + func (render *Render) Funcs(funcMap template.FuncMap) *Template + func (render *Render) Layout(name string) *Template + func (render *Render) PrependViewPath(paths ...string) + func (render *Render) RegisterFuncMap(name string, fc interface{}) + func (render *Render) RegisterViewPath(paths ...string) + func (render *Render) SetAssetFS(assetFS assetfs.Interface) + type Template struct + func (tmpl *Template) Execute(templateName string, obj interface{}, req *http.Request, w http.ResponseWriter) error + func (tmpl *Template) Funcs(funcMap template.FuncMap) *Template + func (tmpl *Template) Render(templateName string, obj interface{}, request *http.Request, ...) (template.HTML, error)