1
|
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 needed_header = Shared.needed_header or error()
|
|
8
|
|
9
|
|
10 return function()
|
|
11 Io.stdout = Http.response.text_writer()
|
|
12 %>
|
|
13 <!doctype html>
|
|
14 <html>
|
|
15 <head>
|
|
16 <% head() %>
|
|
17 <title>Needed Reactionary Software</title>
|
15
|
18 </head>
|
1
|
19 <body>
|
|
20 <% needed_header() %>
|
|
21 <div content>
|
|
22 <h1>Needed Reactionary Software</h1>
|
|
23 <ul links>
|
3
|
24 <li><a href="/lucene.html">Lucene Fork</a></li>
|
4
|
25 <li><a href="/freedit.html">FreedIt - A Reddit Alternative</a></li>
|
1
|
26 </ul>
|
|
27 </div>
|
|
28 </body>
|
|
29 </html>
|
|
30 <%
|
|
31 end
|