GoStart/web/views/index.html

28 lines
667 B
HTML
Raw Normal View History

2024-05-17 19:53:56 +00:00
{{define "view"}}
<main>
<section>
2024-05-29 18:53:02 +00:00
<button
hx-get="/api/example"
class="p-2 text-white bg-orange-400 rounded-md"
2024-05-29 18:53:02 +00:00
>
2024-05-17 19:53:56 +00:00
Click Me!
</button>
<button
hx-get="/example"
class="p-2 text-white bg-blue-400 rounded-md"
hx-swap="outerHTML"
>
Example page button
</button>
2024-05-17 19:53:56 +00:00
<h1 class="font-bold">API Example</h1>
<a href="/api/example" target="_blank">Access Example API</a>
<h2>Content Section</h2>
<p>
This is the main content of your web app. You can add any HTML content
here.
</p>
<a href="/example">Another Example Route can be found here</a>
</section>
</main>
{{end}}