Mercurial Hosting > luan
comparison website/src/pil.html.luan @ 1651:5b8f056527a3
docs work
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 31 Mar 2022 16:13:32 -0600 |
| parents | website/src/pil.html@d3e61cd2aca0 |
| children | d5779a264a4a |
comparison
equal
deleted
inserted
replaced
| 1650:cc3b10a94612 | 1651:5b8f056527a3 |
|---|---|
| 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> | |
| 15 <head> | |
| 16 <% head() %> | |
| 17 <title>Programming in Lua</title> | |
| 18 </head> | |
| 19 <body> | |
| 20 <% header{[[<a href="docs.html">Documentation</a>]]} %> | |
| 21 <div content> | |
| 22 <h1>Programming in Lua</h1> | |
| 23 | |
| 24 <p>Even though <a href="http://www.lua.org/pil/">Programming in Lua</a> is about Lua, not Luan, it still serves as an excellent introduction to Luan since the languages are so close.</p> | |
| 25 </div> | |
| 26 </body> | |
| 27 </html> | |
| 28 <% | |
| 29 end |
