Render takes a chart, optional values, and value overrides, and attempts to render the Go templates. Render can be called repeatedly on the same engine. This will look in the chart's 'templates' data (e.g. the 'templates/' directory) and attempt to render the templates there using the values passe
(chrt ci.Charter, values common.Values)
| 77 | // section contains a value named "bar", that value will be passed on to the |
| 78 | // bar chart during render time. |
| 79 | func (e Engine) Render(chrt ci.Charter, values common.Values) (map[string]string, error) { |
| 80 | tmap := allTemplates(chrt, values) |
| 81 | return e.render(tmap) |
| 82 | } |
| 83 | |
| 84 | // Render takes a chart, optional values, and value overrides, and attempts to |
| 85 | // render the Go templates using the default options. |