annotate website/src/pil.html.luan @ 386:db23f654f87d

make all of website use luan
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 23 Apr 2015 18:09:12 -0600
parents website/src/pil.html@83efd1e3685c
children 23d075ce1e48
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
386
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
1 local Io = require "luan:Io"
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
2 local Html = require "luan:Html"
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
3 local Http = require "luan:web/Http"
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
4
381
83efd1e3685c add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5
386
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
6 function service()
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
7 Io.stdout = Http.response.text_writer()
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
8 Html.simply_html_page{
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
9 head = function() %>
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
10 <title>Programming in Lua</title>
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
11 <% end;
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
12 body = function() %>
381
83efd1e3685c add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
13 <div container>
83efd1e3685c add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
14 <div><small><a href="/">Luan</a></small></div>
83efd1e3685c add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
15 <h1 margin-bottom="1em">Programming in Lua</h1>
83efd1e3685c add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
16
83efd1e3685c add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
17 <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>
83efd1e3685c add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
18
83efd1e3685c add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
19 </div>
386
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
20 <% end;
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
21 }
db23f654f87d make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents: 381
diff changeset
22 end