Mercurial Hosting > reactionary
comparison src/editor.html.luan @ 96:b63be95953ac
add editor
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 23 May 2025 14:22:53 -0600 |
| parents | src/nginx.html.luan@83d98c822c71 |
| children |
comparison
equal
deleted
inserted
replaced
| 95:83d98c822c71 | 96:b63be95953ac |
|---|---|
| 1 local Luan = require "luan:Luan.luan" | |
| 2 local error = Luan.error | |
| 3 local Io = require "luan:Io.luan" | |
| 4 local Site_translator = require "luan:ai/Site_translator.luan" | |
| 5 local get_lang = Site_translator.get_lang or error() | |
| 6 local text_writer = Site_translator.text_writer or error() | |
| 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() | |
| 13 Io.stdout = text_writer() | |
| 14 %> | |
| 15 <!doctype html> | |
| 16 <html lang="<%=get_lang()%>"> | |
| 17 <head> | |
| 18 <% head() %> | |
| 19 <title>Reactionary Software - Nginx</title> | |
| 20 </head> | |
| 21 <body> | |
| 22 <% existing_header() %> | |
| 23 <div content> | |
| 24 <h1>Luan Editor</h1> | |
| 25 | |
| 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> | |
| 27 </div> | |
| 28 </body> | |
| 29 </html> | |
| 30 <% | |
| 31 end |
