Versions in this module Expand all Collapse all v0 v0.1.0 Jan 17, 2026 Changes in this version + func Custom(w http.ResponseWriter, status int, fn RenderFunc) error + func JSON(w http.ResponseWriter, status int, payload any) error + func Text(w http.ResponseWriter, status int, message string) error + type Engine struct + func NewEngine(dir, layout string) (*Engine, error) + func NewEngineFromFS(fsys fs.FS, dir string, options Options) (*Engine, error) + func NewEngineWithOptions(dir string, options Options) (*Engine, error) + func (e *Engine) AddFuncs(funcs FuncMap) error + func (e *Engine) Load() error + func (e *Engine) Render(w http.ResponseWriter, status int, name string, data any) error + type FuncMap = template.FuncMap + type Options struct + DevDir string + Funcs FuncMap + IncludeSubdirs bool + Layout string + Partials []string + Reload bool + type RenderFunc func(http.ResponseWriter) error