annotate src/index.html.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 Io = require "luan:Io.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 local Http = require "luan:http/Http.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 local Shared = require "site:/lib/Shared.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 local head = Shared.head or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 local header = Shared.header or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 local footer = Shared.footer or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 local Forum = require "site:/lib/Forum.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 return function()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 Io.stdout = Http.response.text_writer()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 <!doctype html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 <html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 <head>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 <% head() %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 <title><%=Forum.title%></title>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20 </head>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 <body>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 <% header() %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23 <div content>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 qqq
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
25 </div>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26 <% footer() %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 </body>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28 </html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
29 <%
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
30 end