0
|
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 page_header = Shared.page_header or error()
|
|
8 local footer = Shared.footer or error()
|
|
9
|
|
10
|
|
11 return function()
|
|
12 local email = Http.request.parameters.email or error()
|
|
13 Io.stdout = Http.response.text_writer()
|
|
14 %>
|
|
15 <!doctype html>
|
|
16 <html lang="en">
|
|
17 <head>
|
|
18 <% head() %>
|
|
19 <title>Link My Style</title>
|
|
20 </head>
|
|
21 <body>
|
|
22 <div page>
|
|
23 <% page_header() %>
|
|
24 <div>
|
|
25 <h1>Email sent</h1>
|
|
26 <p>Your account information has been emailed to <%=email%>.</p>
|
|
27 <p>If you can't find the email, it might be in your Spam folder.</p>
|
|
28 </div>
|
|
29 <% footer() %>
|
|
30 </div>
|
|
31 </body>
|
|
32 </html>
|
|
33 <%
|
|
34 end
|