package internal
import "zgo.at/ztpl/internal"
Index ¶
- Variables
- type LockedTpl
- func (t *LockedTpl) ExecuteTemplate(wr io.Writer, name string, data interface{}) error
- func (t *LockedTpl) Has(name string) bool
- func (t *LockedTpl) List() []string
- func (t *LockedTpl) Set(html *htmlTemplate.Template, text *textTemplate.Template)
- type Template
- type Trace
Variables ¶
Types ¶
type LockedTpl ¶
LockedTpl adds a lock to template.Template for reloading in dev without race conditions.
func (*LockedTpl) ExecuteTemplate ¶
func (*LockedTpl) Has ¶
func (*LockedTpl) List ¶
func (*LockedTpl) Set ¶
func (t *LockedTpl) Set(html *htmlTemplate.Template, text *textTemplate.Template)
type Template ¶
type Template interface { ExecuteTemplate(io.Writer, string, interface{}) error Lookup(string) Template GetTree(string) *parse.Tree TemplateNames() []string }
type Trace ¶
type Trace map[string][]interface{}
func (Trace) Names ¶
Source Files ¶
ztpl.go
- Version
- v0.0.0-20240522225602-574aca1079e7 (latest)
- Published
- May 22, 2024
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 20 hours ago –
Tools for package owners.