annotate src/freedit.html.luan @ 6:e151eeda658c

add java
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 09 Apr 2022 19:18:59 -0600
parents 2cdaf431dc86
children 213ed97c36e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
1 local Luan = require "luan:Luan.luan"
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 local error = Luan.error
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
3 local Io = require "luan:Io.luan"
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
4 local Http = require "luan:http/Http.luan"
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 local Shared = require "site:/lib/Shared.luan"
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6 local head = Shared.head or error()
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 local needed_header = Shared.needed_header or error()
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
10 return function()
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
11 Io.stdout = Http.response.text_writer()
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
12 %>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 <!doctype html>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 <html>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 <head>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16 <% head() %>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 <title>FreedIt - A Reddit Alternative</title>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18 <head>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 <body>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
20 <% needed_header() %>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
21 <div content>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
22 <h1>FreedIt - A Reddit Alternative</h1>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
23
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
24 <p>Coming soon...</p>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
25 </div>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
26 </body>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
27 </html>
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
28 <%
2cdaf431dc86 start freedit
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
29 end