view src/this.html.luan @ 9:a47430dc4b50

add to this.html
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 13 Apr 2022 11:59:14 -0600
parents da780d885325
children 9694eff797bf
line wrap: on
line source

local Luan = require "luan:Luan.luan"
local error = Luan.error
local Io = require "luan:Io.luan"
local Http = require "luan:http/Http.luan"
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 = Http.response.text_writer()
%>
<!doctype html>
<html>
	<head>
<%		head() %>
		<title>Reactionary Software - This Website</title>
	<head>
	<body>
<%		existing_header() %>
		<div content>
			<h1>This Website</h1>

			<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.luan.software/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>

			<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>
		</div>
	</body>
</html>
<%
end