dati

data and template interface
git clone git://git.gearsix.net/dati
Log | Files | Refs | Atom | README | LICENSE

commit c3679058d949552863a324e24386810be2ce1225
parent bb46d788e3af753fd208a88a2ebe941856daa508
Author: gearsix <gearsix@tuta.io>
Date:   Sun, 11 Apr 2021 02:59:01 +0100

renamed ExecuteTemplate -> Execute

Diffstat:
Mtemplate.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/template.go b/template.go @@ -170,9 +170,9 @@ func LoadTemplateFile(root string, partials ...string) (t Template, e error) { return } -// ExecuteTemplate executes `t` against `d`. Reflection is used to determine +// Execute executes `t` against `d`. Reflection is used to determine // the template type and call it's execution fuction. -func (t *Template) ExecuteTemplate(d Data) (result bytes.Buffer, err error) { +func (t *Template) Execute(d Data) (result bytes.Buffer, err error) { tv := reflect.ValueOf(t.Template) tt := reflect.TypeOf(t.Template)