comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:6a1e2749571d
1 local Luan = require "luan:Luan.luan"
2 local error = Luan.error
3 local Io = require "luan:Io.luan"
4 local Http = require "luan:http/Http.luan"
5 local Shared = require "site:/lib/Shared.luan"
6 local head = Shared.head or error()
7 local header = Shared.header or error()
8 local footer = Shared.footer or error()
9 local Forum = require "site:/lib/Forum.luan"
10
11
12 return function()
13 Io.stdout = Http.response.text_writer()
14 %>
15 <!doctype html>
16 <html>
17 <head>
18 <% head() %>
19 <title><%=Forum.title%></title>
20 </head>
21 <body>
22 <% header() %>
23 <div content>
24 qqq
25 </div>
26 <% footer() %>
27 </body>
28 </html>
29 <%
30 end