diff options
Diffstat (limited to 'tpl/tplimpl/template.go')
-rw-r--r-- | tpl/tplimpl/template.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tpl/tplimpl/template.go b/tpl/tplimpl/template.go index 457a5cb92..b6313e1e5 100644 --- a/tpl/tplimpl/template.go +++ b/tpl/tplimpl/template.go @@ -383,9 +383,15 @@ func (t *templateHandler) LookupVariant(name string, variants tpl.TemplateVarian } func (t *templateHandler) HasTemplate(name string) bool { + if _, found := t.baseof[name]; found { return true } + + if _, found := t.needsBaseof[name]; found { + return true + } + _, found := t.Lookup(name) return found } |