GoStart/web/views/example.html

19 lines
485 B
HTML

{{define "view"}}
<main>
<div>You are now viewing the {{.Title}}</div>
<h1 class="font-bold">Serve Static Files Like this Gopher</h1>
<div class="flex justify-center mb-4">
<img src="/static/img/gopher.png" alt="alternate text" />
</div>
<div>You can get back to the index view with this button</div>
<button
hx-get="/"
hx-swap="outerHTML"
hx-target="body"
class="p-2 text-white bg-blue-400 rounded-md"
>
Click Me 😀
</button>
</main>
{{end}}