diff options
Diffstat (limited to 'tpl/tplimpl/amber_compiler.go')
-rw-r--r-- | tpl/tplimpl/amber_compiler.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/tplimpl/amber_compiler.go b/tpl/tplimpl/amber_compiler.go index 252c39ffb..10ed0443c 100644 --- a/tpl/tplimpl/amber_compiler.go +++ b/tpl/tplimpl/amber_compiler.go @@ -19,7 +19,7 @@ import ( "github.com/eknkc/amber" ) -func (gt *GoHTMLTemplate) CompileAmberWithTemplate(b []byte, path string, t *template.Template) (*template.Template, error) { +func (t *templateHandler) compileAmberWithTemplate(b []byte, path string, templ *template.Template) (*template.Template, error) { c := amber.New() if err := c.ParseData(b, path); err != nil { @@ -32,7 +32,7 @@ func (gt *GoHTMLTemplate) CompileAmberWithTemplate(b []byte, path string, t *tem return nil, err } - tpl, err := t.Funcs(gt.amberFuncMap).Parse(data) + tpl, err := templ.Funcs(t.amberFuncMap).Parse(data) if err != nil { return nil, err |