Mercurial Hosting > freedit
comparison src/index.html.luan @ 3:fc3ee39d7764
login
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 19 Jun 2022 20:47:31 -0600 |
parents | 6a1e2749571d |
children | be36282b556a |
comparison
equal
deleted
inserted
replaced
2:fc2383eb48a9 | 3:fc3ee39d7764 |
---|---|
5 local Shared = require "site:/lib/Shared.luan" | 5 local Shared = require "site:/lib/Shared.luan" |
6 local head = Shared.head or error() | 6 local head = Shared.head or error() |
7 local header = Shared.header or error() | 7 local header = Shared.header or error() |
8 local footer = Shared.footer or error() | 8 local footer = Shared.footer or error() |
9 local Forum = require "site:/lib/Forum.luan" | 9 local Forum = require "site:/lib/Forum.luan" |
10 local forum_title = Forum.title or error() | |
10 | 11 |
11 | 12 |
12 return function() | 13 return function() |
13 Io.stdout = Http.response.text_writer() | 14 Io.stdout = Http.response.text_writer() |
14 %> | 15 %> |
15 <!doctype html> | 16 <!doctype html> |
16 <html> | 17 <html> |
17 <head> | 18 <head> |
18 <% head() %> | 19 <% head() %> |
19 <title><%=Forum.title%></title> | 20 <title><%=forum_title%></title> |
20 </head> | 21 </head> |
21 <body> | 22 <body> |
22 <% header() %> | 23 <% header() %> |
23 <div content> | 24 <div content> |
24 qqq | 25 qqq |