Mercurial Hosting > freedit
comparison src/lib/Shared.luan @ 0:6a1e2749571d
start
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 15 Jun 2022 20:18:36 -0600 |
parents | |
children | fc3ee39d7764 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6a1e2749571d |
---|---|
1 local Luan = require "luan:Luan.luan" | |
2 local error = Luan.error | |
3 local Forum = require "site:/lib/Forum.luan" | |
4 | |
5 | |
6 local Shared = {} | |
7 | |
8 function Shared.head() | |
9 %> | |
10 <meta name="viewport" content="width=device-width, initial-scale=1"> | |
11 <style> | |
12 @import "/site.css"; | |
13 </style> | |
14 <% | |
15 end | |
16 | |
17 function Shared.header() | |
18 %> | |
19 <div header> | |
20 <a href="/"><%=Forum.title%></a> | |
21 </div> | |
22 <% | |
23 end | |
24 | |
25 function Shared.footer() | |
26 %> | |
27 <div footer> | |
28 <a href="/config.html">Configuration</a> | |
29 </div> | |
30 <% | |
31 end | |
32 | |
33 return Shared |