{{define "page-content"}} <h2>Anmeldung</h2> <form> <input name="username" placeholder="Benutzername" type="text" /> <input name="password" placeholder="Passwort" type="password" /> <input type="submit" value="Anmelden" hx-post="/login/" hx-target="#page-content" /> </form> {{end}}