--- foo: - bar - hello ---
{{/* context_the_dot */}}
{{`https://gohugo.io/templates/introduction/#context-aka-the-dot` | markdownify }}
{{print .Dir }}
{{ with .Params.foo }}
{{print (index . 0) }}
{{- /* print .Dir */}} {{/* => error */}}
{{print $.Dir }}
{{ end }}
{{print .Dir }}
{{print $.Dir }}
{{- range .Params.foo }}
{{ print . }}
{{- end }}
{{ template "test" (seq 1 5) }}
{{ template "test" (dict "foo" "bar" "hello" 42) }}
{{- define "test" }}
{{- printf "%#v" . }}
{{- end }}
https://gohugo.io/templates/introduction/#context-aka-the-dot examples/basics/ bar examples/basics/ examples/basics/ examples/basics/ bar hello []int{1, 2, 3, 4, 5} map[string]interface {}{"foo":"bar", "hello":42}