Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/tplimpl/template_errors.go')
-rw-r--r--tpl/tplimpl/template_errors.go4
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)
}