2
|
1 local Luan = require "luan:Luan.luan"
|
|
2 local error = Luan.error
|
|
3 local Io = require "luan:Io.luan"
|
95
|
4 local Site_translator = require "luan:ai/Site_translator.luan"
|
91
|
5 local get_lang = Site_translator.get_lang or error()
|
|
6 local text_writer = Site_translator.text_writer or error()
|
2
|
7 local Shared = require "site:/lib/Shared.luan"
|
|
8 local head = Shared.head or error()
|
|
9 local existing_header = Shared.existing_header or error()
|
|
10
|
|
11
|
|
12 return function()
|
91
|
13 Io.stdout = text_writer()
|
2
|
14 %>
|
|
15 <!doctype html>
|
91
|
16 <html lang="<%=get_lang()%>">
|
2
|
17 <head>
|
|
18 <% head() %>
|
|
19 <title>Reactionary Software - Nginx</title>
|
15
|
20 </head>
|
2
|
21 <body>
|
|
22 <% existing_header() %>
|
|
23 <div content>
|
96
|
24 <h1>Luan Editor</h1>
|
2
|
25
|
96
|
26 <p>Is another text editor needed? <a href="https://www.sublimetext.com/">Sublime Text</a> isn't bad. And to be honest, the main reason that I wrote Luan Editor was to learn Java Swing. But now that it is finished, I rather like it. You can get <a href="https://hg.reactionary.software/repo/editor/">the source</a>. I would like to implement an installer for Luan Editor.</p>
|
2
|
27 </div>
|
|
28 </body>
|
|
29 </html>
|
|
30 <%
|
|
31 end
|