comparison src/account.html.luan @ 3:fc3ee39d7764

login
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 19 Jun 2022 20:47:31 -0600
parents
children 7ce54f6d93f2
comparison
equal deleted inserted replaced
2:fc2383eb48a9 3:fc3ee39d7764
1 local Luan = require "luan:Luan.luan"
2 local error = Luan.error
3 local Io = require "luan:Io.luan"
4 local Http = require "luan:http/Http.luan"
5 local Shared = require "site:/lib/Shared.luan"
6 local head = Shared.head or error()
7 local header = Shared.header or error()
8 local footer = Shared.footer or error()
9 local Forum = require "site:/lib/Forum.luan"
10 local forum_title = Forum.title or error()
11
12
13 return function()
14 Io.stdout = Http.response.text_writer()
15 %>
16 <!doctype html>
17 <html>
18 <head>
19 <% head() %>
20 <title><%=forum_title%> - Your Account</title>
21 </head>
22 <body>
23 <% header() %>
24 <div content>
25 <h1>Your Account</h1>
26
27 <p><a href="/logout.html">logout</a></p>
28 </div>
29 <% footer() %>
30 </body>
31 </html>
32 <%
33 end