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 header = Shared.header or error()
|
|
8 local footer = Shared.footer or error()
|
3
|
9 local Config = require "site:/lib/Config.luan"
|
1
|
10
|
|
11
|
|
12 return function()
|
|
13 Io.stdout = Http.response.text_writer()
|
|
14 %>
|
|
15 <!doctype html>
|
|
16 <html>
|
|
17 <head>
|
|
18 <% head() %>
|
|
19 <title>Disearch</title>
|
|
20 </head>
|
|
21 <body>
|
|
22 <% header() %>
|
|
23 <p>under construction</p>
|
|
24 <% footer() %>
|
|
25 </body>
|
|
26 </html>
|
|
27 <%
|
|
28 end
|