golazy.dev
–
golazy.dev
/
lazyview
/
gotmpl
Index
|
Files
package gotmpl
import "golazy.dev/lazyview/gotmpl"
Types
type Engine
Engine renders .tpl files with html/template.
type Engine struct {
// contains filtered or unexported fields
}
func (e *Engine) Cache
Cache parses all templates for this engine's extension and replaces the cache.
func (e *Engine) Cache(ctx lazyview.CacheContext) error
func (e *Engine) ClearCache
ClearCache discards parsed templates.
func (e *Engine) ClearCache()
func (e *Engine) Render
Render renders one template file.
func (e *Engine) Render(ctx *lazyview.Context, writer io.Writer, file string) error
Package gotmpl registers Go's html/template engine for lazyview.