fix recursion count in templates

Signed-off-by: Daniel Cheng <dcheng@us.ibm.com>
Signed-off-by: Matheus Hunsche <matheus.hunsche@ifood.com.br>
pull/8840/head
Daniel Cheng 6 years ago committed by Matheus Hunsche
parent 3d97f61ace
commit b4edc0b839

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

Loading…
Cancel
Save