Reusable Components
Build small, shareable UI pieces using named templates.
Reusable Components
You can define partials or components using named {{ define }}
blocks in a central template file.
{{ define "Button" }}
<button class="btn">{{ .Label }}</button>
{{ end }}
Then, render it anywhere with:
{{ template "Button" . }}
This lets you create button sets, cards, or utility blocks shared across your site.