GoStart/web/views/example.html

19 lines
485 B
HTML
Raw Normal View History

2024-05-17 19:53:56 +00:00
{{define "view"}}
2024-06-13 20:13:14 +00:00
<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}}