{% extends "base.html" %} {% block title %}login{% endblock %} {% block heading %} <h1>login</h1> {% endblock %} {% block content %} <form hx-post="/login" hx-trigger="submit load" hx-target="#message"> <label for="username">username</label> <input type="text" name="username" id="username" /> <label for="password">password</label> <input type="password" name="password" id="password" /> <button type="submit">submit</button> </form> <p id="message"></p> {% endblock %}