// Render renders the Templates into resource nodes using TemplateData.
Render renders the Templates into resource nodes using TemplateData.
// Render renders the Templates into resource nodes using TemplateData .
func (rt *ResourceTemplate) Render() ([]*yaml.RNode, error) {
	var items []*yaml.RNode
	if rt.Templates == nil {
		return items, nil
	}
	templates, err := rt.Templates()
	if err != nil {
		return nil, errors.WrapPrefixf(err, "failed to retrieve ResourceTemplates")
	}
	for i := range templates {
		newItems, err := rt.doTemplate(templates[i])
		if err != nil {
			return nil, err
		}
		items = append(items, newItems...)
	}
	return items, nil
}
func ( rt * ResourceTemplate ) Render ( ) ( [ ] * yaml . RNode , error ) { var items [ ] * yaml . RNode if rt . Templates == nil { return items , nil } templates , err := rt . Templates ( ) if err != nil { return nil , errors . WrapPrefixf ( err , " " ) } for i := range templates { newItems , err := rt . doTemplate ( templates [ i ] ) if err != nil { return nil , err } items = append ( items , newItems ... ) } return items , nil }
Render renders the Templates into resource nodes using TemplateData.
Render renders the Templates into resource nodes using TemplateData .