Mercurial Hosting > lang
comparison src/tools/hello_luan.html.luan @ 10:b0b325565d30
add public tools
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 21 Jul 2025 19:13:02 -0600 |
parents | src/login_sent.html.luan@78708fa556a0 |
children |
comparison
equal
deleted
inserted
replaced
9:46097e607701 | 10:b0b325565d30 |
---|---|
1 local Luan = require "luan:Luan.luan" | |
2 local error = Luan.error | |
3 local Io = require "luan:Io.luan" | |
4 local Http = require "luan:http/Http.luan" | |
5 local Shared = require "site:/lib/Shared.luan" | |
6 local head = Shared.head or error() | |
7 local header = Shared.header or error() | |
8 | |
9 | |
10 return function() | |
11 Io.stdout = Http.response.text_writer() | |
12 %> | |
13 <!doctype html> | |
14 <html lang="en"> | |
15 <head> | |
16 <% head() %> | |
17 </head> | |
18 <body> | |
19 <% header() %> | |
20 <div content> | |
21 <p>Hello Luan</p> | |
22 </div> | |
23 </body> | |
24 </html> | |
25 <% | |
26 end |