diff options
Diffstat (limited to 'tpl/tplimpl/template_errors.go')
-rw-r--r-- | tpl/tplimpl/template_errors.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tpl/tplimpl/template_errors.go b/tpl/tplimpl/template_errors.go index 48818cb60..df80726f5 100644 --- a/tpl/tplimpl/template_errors.go +++ b/tpl/tplimpl/template_errors.go @@ -34,6 +34,10 @@ type templateInfo struct { realFilename string } +func (t templateInfo) IsZero() bool { + return t.name == "" +} + func (t templateInfo) resolveType() templateType { return resolveTemplateType(t.name) } |