fix recursion count in templates

Signed-off-by: Daniel Cheng <dcheng@us.ibm.com>
pull/7558/head
Daniel Cheng 5 years ago
parent 593ea3fb12
commit 8528548441

@ -120,6 +120,7 @@ func (e Engine) initFunMap(t *template.Template, referenceTpls map[string]render
includedNames[name] = 1 includedNames[name] = 1
} }
err := t.ExecuteTemplate(&buf, name, data) err := t.ExecuteTemplate(&buf, name, data)
includedNames[name]--
return buf.String(), err return buf.String(), err
} }

Loading…
Cancel
Save