generated from ElnuDev/go-project
Improve demo using html/templates instead of templ
This commit is contained in:
parent
20db5cdaad
commit
3fc30c0d3a
8 changed files with 27 additions and 113 deletions
|
@ -7,6 +7,11 @@
|
|||
<script src="https://unpkg.com/htmx.org@1.9.3"></script>
|
||||
</head>
|
||||
<body>
|
||||
<button hx-get="/api/click" hx-swap="innerHTML">Click me!</button>
|
||||
<button hx-get="/api/click1" hx-swap="innerHTML">Click me!</button>
|
||||
<br>
|
||||
<button hx-get="/api/click2" hx-swap="innerHTML">Click me!</button>
|
||||
<br>
|
||||
<button hx-get="/api/click3 " hx-swap="innerHTML">Click me!</button>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
Reference in a new issue