Mercurial Hosting > disearch
comparison src/lib/Shared.luan @ 1:d19b150ecb83
add Shared
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 19 Oct 2023 23:14:21 -0600 |
parents | |
children | 5ae5fbce0d75 |
comparison
equal
deleted
inserted
replaced
0:24d8dc525146 | 1:d19b150ecb83 |
---|---|
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> | |
22 something or other in the header | |
23 </div> | |
24 <hr> | |
25 <% | |
26 end | |
27 | |
28 function Shared.footer() | |
29 %> | |
30 <hr> | |
31 <div footer> | |
32 something or other in the footer | |
33 </div> | |
34 <% | |
35 end | |
36 | |
37 return Shared |