purr/views/index.hamlet

15 lines
494 B
Plaintext

<html>
<head>
<title>Purr
<script src="https://unpkg.com/htmx.org@1.7.0" integrity="sha384-EzBXYPt0/T6gxNp0nuPtLkmRpmDBbjg6WmCUZRLXBBwYYmwAUxzlSGej0ARHX0Bo" crossorigin="anonymous">
<body>
<h1>Welcome to Purr!
<p #requestedPw>No password currently requested.
<p>Ask for the <input name="userLink" type="text"/> password
<button hx-post="/pw"
hx-target="#requestedPw"
hx-swap="outerHTML"
hx-include="[name='userLink']"
/>
Get Password!