OK found it. I was using {{ partial "nav.html" }}
instead of {{ partial "nav.html" . }}
and the partial could not access the variable (maybe it would be worthwhile to log a warning in that case?).
This is clearly documented.
OK found it. I was using {{ partial "nav.html" }}
instead of {{ partial "nav.html" . }}
and the partial could not access the variable (maybe it would be worthwhile to log a warning in that case?).
This is clearly documented.