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 header = Shared.header or error()
|
|
8 local footer = Shared.footer or error()
|
|
9 local Forum = require "site:/lib/Forum.luan"
|
3
|
10 local forum_title = Forum.title or error()
|
0
|
11
|
|
12
|
|
13 return function()
|
|
14 Io.stdout = Http.response.text_writer()
|
|
15 %>
|
|
16 <!doctype html>
|
|
17 <html>
|
|
18 <head>
|
|
19 <% head() %>
|
3
|
20 <title><%=forum_title%></title>
|
0
|
21 </head>
|
|
22 <body>
|
|
23 <% header() %>
|
|
24 <div content>
|
8
|
25 <p><a href="/new_thread.html">New Thread</a></p>
|
0
|
26 </div>
|
|
27 <% footer() %>
|
|
28 </body>
|
|
29 </html>
|
|
30 <%
|
|
31 end
|