This question already has an answer here:
- Golang template engine pipelines 1 answer
In https://golang.org/pkg/text/template/#hdr-Actions, it has the following explanation
{{template "name" pipeline}} The template with the specified name is executed with dot set to the value of the pipeline.
what does it mean? what's dot for?
For example, I see the following template code -
{{ define "header" }}
{{ template "top" . }}
{{ template "needs" }}
...
{{ end }}
What is the '.' for following the "top" in the code above?
</div>