Mercurial Hosting > freedit
comparison src/config.html.luan @ 1:7c64173643c8
start config
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 15 Jun 2022 20:59:13 -0600 |
parents | |
children | fc2383eb48a9 |
comparison
equal
deleted
inserted
replaced
0:6a1e2749571d | 1:7c64173643c8 |
---|---|
1 local Luan = require "luan:Luan.luan" | |
2 local error = Luan.error | |
3 local Html = require "luan:Html.luan" | |
4 local html_encode = Html.encode or error() | |
5 local Io = require "luan:Io.luan" | |
6 local Http = require "luan:http/Http.luan" | |
7 local Shared = require "site:/lib/Shared.luan" | |
8 local head = Shared.head or error() | |
9 local header = Shared.header or error() | |
10 local footer = Shared.footer or error() | |
11 local Forum = require "site:/lib/Forum.luan" | |
12 local Config = require "site:/lib/Config.luan" | |
13 | |
14 | |
15 return function() | |
16 Io.stdout = Http.response.text_writer() | |
17 %> | |
18 <!doctype html> | |
19 <html> | |
20 <head> | |
21 <% head() %> | |
22 <title><%=Forum.title%> - Configuration</title> | |
23 <style> | |
24 textarea { | |
25 width: 90%; | |
26 height: 20em; | |
27 } | |
28 </style> | |
29 </head> | |
30 <body> | |
31 <% header() %> | |
32 <div content> | |
33 <h1>Configuration</h2> | |
34 | |
35 <textarea><%= html_encode(Config.text) %></textarea> | |
36 </div> | |
37 <% footer() %> | |
38 </body> | |
39 </html> | |
40 <% | |
41 end |