Mercurial Hosting > reactionary
changeset 96:b63be95953ac default tip
add editor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 23 May 2025 14:22:53 -0600 (12 hours ago) |
parents | 83d98c822c71 |
children | |
files | src/editor.html.luan src/existing.html.luan |
diffstat | 2 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/editor.html.luan Fri May 23 14:22:53 2025 -0600 @@ -0,0 +1,31 @@ +local Luan = require "luan:Luan.luan" +local error = Luan.error +local Io = require "luan:Io.luan" +local Site_translator = require "luan:ai/Site_translator.luan" +local get_lang = Site_translator.get_lang or error() +local text_writer = Site_translator.text_writer or error() +local Shared = require "site:/lib/Shared.luan" +local head = Shared.head or error() +local existing_header = Shared.existing_header or error() + + +return function() + Io.stdout = text_writer() +%> +<!doctype html> +<html lang="<%=get_lang()%>"> + <head> +<% head() %> + <title>Reactionary Software - Nginx</title> + </head> + <body> +<% existing_header() %> + <div content> + <h1>Luan Editor</h1> + + <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> + </div> + </body> +</html> +<% +end
--- a/src/existing.html.luan Fri May 16 17:24:47 2025 -0600 +++ b/src/existing.html.luan Fri May 23 14:22:53 2025 -0600 @@ -30,6 +30,7 @@ <li><a href="java.html">Java 8</a></li> <li><a href="python.html">Python</a></li> <li><a href="<%=luan_url()%>/">Luan</a> <img src="/external_link.svg"></li> + <li><a href="editor.html">Luan Editor</a></li> <li><a href="nginx.html">Nginx</a></li> <li><a href="https://mailer.reactionary.software/">Mailer REST API</a> <img src="/external_link.svg"></li> <li><a href="this.html">This Website</a></li>