summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/template_errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/tplimpl/template_errors.go')
-rw-r--r--tpl/tplimpl/template_errors.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tpl/tplimpl/template_errors.go b/tpl/tplimpl/template_errors.go
index 63695c5f6..48818cb60 100644
--- a/tpl/tplimpl/template_errors.go
+++ b/tpl/tplimpl/template_errors.go
@@ -20,7 +20,9 @@ import (
)
type templateInfo struct {
+ name string
template string
+ isText bool // HTML or plain text template.
// Used to create some error context in error situations
fs afero.Fs
@@ -32,6 +34,10 @@ type templateInfo struct {
realFilename string
}
+func (t templateInfo) resolveType() templateType {
+ return resolveTemplateType(t.name)
+}
+
func (info templateInfo) errWithFileContext(what string, err error) error {
err = errors.Wrapf(err, what)