annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 local error = Luan.error
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 local Forum = require "site:/lib/Forum.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 local Shared = {}
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 function Shared.head()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 <meta name="viewport" content="width=device-width, initial-scale=1">
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 <style>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 @import "/site.css";
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 </style>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 <%
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 end
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 function Shared.header()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 <div header>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20 <a href="/"><%=Forum.title%></a>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 </div>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 <%
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23 end
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
25 function Shared.footer()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26 %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 <div footer>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28 <a href="/config.html">Configuration</a>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
29 </div>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
30 <%
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
31 end
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
32
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
33 return Shared