Debian Codegraph @

demos/guestbook/templates/guestbook.html

raw
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Guestbook Demo</title>
5 </head>
6 <body>
7 <p>
8 {{with .Email}}You are currently logged in as {{.}}.{{end}}
9 {{with .Login}}<a href="{{.}}">Sign in</a>{{end}}
10 {{with .Logout}}<a href="{{.}}">Sign out</a>{{end}}
11 </p>
12
13 {{range .Greetings }}
14 <p>
15 {{with .Author}}<b>{{.}}</b>{{else}}An anonymous person{{end}}
16 on <em>{{.Date.Format "3:04pm, Mon 2 Jan"}}</em>
17 wrote <blockquote>{{.Content}}</blockquote>
18 </p>
19 {{end}}
20
21 <form action="/sign" method="post">
22 <div><textarea name="content" rows="3" cols="60"></textarea></div>
23 <div><input type="submit" value="Sign Guestbook"></div>
24 </form>
25 </body>
26 </html>