When inside a with or range, the scope of . is changed. How do you access the calling scope?
with
range
.
You can save the calling scope with a variable:
{{ $save := . }} {{ with .Inner }} Outer: {{ $save.OuterValue }} Inner: {{ .InnerValue }} {{ end }}