1
|
1 local Luan = require "luan:Luan.luan"
|
|
2 local error = Luan.error
|
|
3 local Time = require "luan:Time.luan"
|
|
4
|
|
5
|
|
6 local Shared = {}
|
|
7
|
|
8 local started = Time.now()
|
|
9
|
|
10 function Shared.head()
|
|
11 %>
|
|
12 <meta name="viewport" content="width=device-width, initial-scale=1">
|
|
13 <style>
|
|
14 @import "/site.css?s=<%=started%>";
|
|
15 </style>
|
|
16 <%
|
|
17 end
|
|
18
|
|
19 function Shared.header()
|
|
20 %>
|
|
21 <div header>
|
2
|
22 <h1><a href="/">Disearch</a></h1>
|
|
23 <span>login</span>
|
1
|
24 </div>
|
|
25 <hr>
|
|
26 <%
|
|
27 end
|
|
28
|
|
29 function Shared.footer()
|
|
30 %>
|
|
31 <hr>
|
|
32 <div footer>
|
|
33 something or other in the footer
|
|
34 </div>
|
|
35 <%
|
|
36 end
|
|
37
|
|
38 return Shared
|