0
|
1 local Luan = require "luan:Luan.luan"
|
|
2 local error = Luan.error
|
1
|
3 local Time = require "luan:Time.luan"
|
0
|
4
|
|
5
|
|
6 local Shared = {}
|
|
7
|
1
|
8 local started = Time.now()
|
|
9
|
0
|
10 function Shared.head()
|
|
11 %>
|
|
12 <meta name="viewport" content="width=device-width, initial-scale=1">
|
|
13 <style>
|
1
|
14 @import "/site.css?s=<%=started%>";
|
0
|
15 </style>
|
1
|
16 <script src="/site.js?s=<%=started%>"></script>
|
0
|
17 <%
|
|
18 end
|
|
19
|
|
20 function Shared.header()
|
|
21 %>
|
|
22 <div header>
|
|
23 </div>
|
|
24 <%
|
|
25 end
|
|
26
|
|
27 return Shared
|