diff options
Diffstat (limited to 'tpl/tplimpl/template_errors.go')
-rw-r--r-- | tpl/tplimpl/template_errors.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tpl/tplimpl/template_errors.go b/tpl/tplimpl/template_errors.go index df80726f5..06d895536 100644 --- a/tpl/tplimpl/template_errors.go +++ b/tpl/tplimpl/template_errors.go @@ -34,6 +34,14 @@ type templateInfo struct { realFilename string } +func (t templateInfo) Name() string { + return t.name +} + +func (t templateInfo) Filename() string { + return t.realFilename +} + func (t templateInfo) IsZero() bool { return t.name == "" } |