Inserting Partials with template and include
Why include composes with pipelines and template does not.
Calling a Partial
A defined partial does nothing until you call it. Helm gives you two actions for this: template and include.
The template Action
The template action renders a named partial inline. You pass the partial name and a scope object for it to read.
{{ template "mychart.labels" . }}All lessons in this course
- Defining a Partial with define
- Inserting Partials with template and include
- The Standard Fullname and Labels Helpers
- Passing Scope into a Named Template