making it work

This commit is contained in:
talksik
2023-09-06 13:57:32 -07:00
parent 7826fc21d5
commit 4fe0b6b276
6 changed files with 66 additions and 19 deletions
+8 -1
View File
@@ -1,5 +1,12 @@
package templates
templ Hello(name string) {
<div>Hello, { name }</div>
<head>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/[email protected]" integrity="sha384-xcuj3WpfgjlKF+FXhSQFQ0ZNr39ln+hwjN3npfM9VBnUskLolQAcN80McRIVOPuO" crossorigin="anonymous"></script>
</head>
<div>Hello, { name }</div>
<button hx-post="/" hx-target="body">test</button>
}