all repos — quartzgun @ 2f41f53ebfba7cf71cd127c8354999c21e3188cb

lightweight web framework in go

testData/templates/login.html (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{{ $tryagain := .FormValue "tryagain" }}

<!DOCTYPE html>
<html lang='en'>
  <head>
    <meta charset='utf-8'>
    <meta name='description' content='Nirvash CMS'/>
    <meta name='viewport' content='width=device-width,initial-scale=1'>
    <title>Nirvash &mdash; Login</title>
  </head>
  <body>
    {{ if $tryagain }}
    <div class="error">Incorrect credentials; please try again.</div>
    {{ end }}
    <form action='/login' method='post'>
      <input type="text" name="user" placeholder="user">
      <input type="password" name="password" placeholder="password">
      <input type="submit" value="Login">
    </form>
  </body>
</html>