comparison website/src/pil.html.luan @ 1652:d5779a264a4a

docs work
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 31 Mar 2022 19:04:59 -0600
parents 5b8f056527a3
children 50e570b598b2
comparison
equal deleted inserted replaced
1651:5b8f056527a3 1652:d5779a264a4a
2 local error = Luan.error 2 local error = Luan.error
3 local Io = require "luan:Io.luan" 3 local Io = require "luan:Io.luan"
4 local Http = require "luan:http/Http.luan" 4 local Http = require "luan:http/Http.luan"
5 local Shared = require "site:/lib/Shared.luan" 5 local Shared = require "site:/lib/Shared.luan"
6 local head = Shared.head or error() 6 local head = Shared.head or error()
7 local header = Shared.header or error() 7 local docs_header = Shared.docs_header or error()
8 8
9 9
10 return function() 10 return function()
11 Io.stdout = Http.response.text_writer() 11 Io.stdout = Http.response.text_writer()
12 %> 12 %>
15 <head> 15 <head>
16 <% head() %> 16 <% head() %>
17 <title>Programming in Lua</title> 17 <title>Programming in Lua</title>
18 </head> 18 </head>
19 <body> 19 <body>
20 <% header{[[<a href="docs.html">Documentation</a>]]} %> 20 <% docs_header() %>
21 <div content> 21 <div content>
22 <h1>Programming in Lua</h1> 22 <h1>Programming in Lua</h1>
23 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> 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> 25 </div>