Files
mathias 9ea65ef5d2
CD / Detect unsubstituted template (push) Has been cancelled
CD / Lint / Test / Vet (push) Has been cancelled
CD / Build & Import (push) Has been cancelled
CD / Deploy via GitOps (push) Has been cancelled
template: substitute placeholders
2026-07-19 08:29:48 +00:00

17 lines
369 B
Templ

package web
templ Index() {
@Layout("cad-atlas") {
<h1 class="text-3xl font-semibold mb-6">cad-atlas</h1>
<button hx-get="/api/hello" hx-target="#out"
class="px-4 py-2 bg-slate-900 text-white rounded-md hover:bg-slate-700">
Say hello
</button>
<div id="out" class="mt-6 text-slate-700"></div>
}
}
templ Hello(name string) {
<p>Hello, { name }!</p>
}