comparison 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
comparison
equal deleted inserted replaced
385:9850d788a20b 386:db23f654f87d
1 local Io = require "luan:Io"
2 local Html = require "luan:Html"
3 local Http = require "luan:web/Http"
4
5
6 function service()
7 Io.stdout = Http.response.text_writer()
8 Html.simply_html_page{
9 head = function() %>
10 <title>Programming in Lua</title>
11 <% end;
12 body = function() %>
13 <div container>
14 <div><small><a href="/">Luan</a></small></div>
15 <h1 margin-bottom="1em">Programming in Lua</h1>
16
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>
18
19 </div>
20 <% end;
21 }
22 end