blob: e9812669f24d59de1295d082a00d91b32bdc4b3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{{template "layout.gohtml" .}}
{{define "content"}}
<div class="layout-center">
<form action="/">
<h1>Secret:</h1>
<div id="content">
<button
class='btn'
hx-get="/api/s/{{.id}}"
hx-target="#content"
hx-swap="innerHTML">
Show secret content
</button>
<span class="htmx-indicator">Loading...</span>
</div>
<input type="submit" value="← Back">
</form>
</div>
{{ end }}
|