A consuming project's own per-page data struct commonly embeds both PageHeader and a domain type that has its own Name field (e.g. a Kubernetes resource's name, as in yakwui's node/deployment/pod detail pages) -- two same-depth promoted "Name" fields make html/template's ".Name" an ambiguous selector that only fails at execution time, not at parse time.
4 lines
97 B
Cheetah
4 lines
97 B
Cheetah
{{define "footer"}}
|
|
<footer class="footer">{{.AppName}} web UI · {{buildInfo}}</footer>
|
|
{{end}}
|