annotate src/this.html.luan @ 22:0e882ff8d245

add wysiwyg
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 05 Aug 2022 00:22:05 -0600
parents 612a6dd1c2fa
children b1982e401900
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 local error = Luan.error
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 local Io = require "luan:Io.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 local Http = require "luan:http/Http.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 local Shared = require "site:/lib/Shared.luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 local head = Shared.head or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 local existing_header = Shared.existing_header or error()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 return function()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 Io.stdout = Http.response.text_writer()
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 <!doctype html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 <html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 <head>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 <% head() %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 <title>Reactionary Software - This Website</title>
15
9694eff797bf fix html
Franklin Schmidt <fschmidt@gmail.com>
parents: 9
diff changeset
18 </head>
1
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 <body>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20 <% existing_header() %>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 <div content>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 <h1>This Website</h1>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23
18
612a6dd1c2fa hghosting
Franklin Schmidt <fschmidt@gmail.com>
parents: 15
diff changeset
24 <p>This website is a tiny example of reactionary software. The UI is clean and simple, not fashionable. View the HTML source in the browser. Unlike all modern websites, the HTML here is readable. Now look at <a href="https://hg.reactionary.software/repo/reactionary">the source</a> which is in <a href="/mercurial.html">Mercurial</a>. And the code is written in <a href="http://www.luan.software/">Luan</a> which makes it simple.</p>
9
a47430dc4b50 add to this.html
Franklin Schmidt <fschmidt@gmail.com>
parents: 1
diff changeset
25
a47430dc4b50 add to this.html
Franklin Schmidt <fschmidt@gmail.com>
parents: 1
diff changeset
26 <p>Also note that this website uses <a href="https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol">HTTP</a>, not <a href="https://en.wikipedia.org/wiki/HTTPS">HTTPS</a>. Using HTTPS is completely pointless for an informational site like this one that has no need for security. Yet all modern browsers complain, warning the user that the site is "Not Secure". Why do they do this? Because modern programmers hate simplicity and love complexity, and using HTTPS for a site that doesn't need security just adds complexity, so they complain because they hate the simplicity of HTTP.</p>
1
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 </div>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28 </body>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
29 </html>
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
30 <%
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
31 end