Mercurial Hosting > luan
comparison website/src/pil.html.luan @ 387:23d075ce1e48
add website/src/Shared.luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 23 Apr 2015 18:16:15 -0600 |
parents | db23f654f87d |
children | 2f5cc9c2cbf0 |
comparison
equal
deleted
inserted
replaced
386:db23f654f87d | 387:23d075ce1e48 |
---|---|
1 local Io = require "luan:Io" | 1 local Io = require "luan:Io" |
2 local Html = require "luan:Html" | 2 local Html = require "luan:Html" |
3 local Http = require "luan:web/Http" | 3 local Http = require "luan:web/Http" |
4 local Shared = require "site:/Shared" | |
4 | 5 |
5 | 6 |
6 function service() | 7 function service() |
7 Io.stdout = Http.response.text_writer() | 8 Io.stdout = Http.response.text_writer() |
8 Html.simply_html_page{ | 9 Html.simply_html_page{ |
9 head = function() %> | 10 head = function() %> |
10 <title>Programming in Lua</title> | 11 <title>Programming in Lua</title> |
11 <% end; | 12 <% end; |
12 body = function() %> | 13 body = function() %> |
13 <div container> | 14 <div container> |
14 <div><small><a href="/">Luan</a></small></div> | 15 <% Shared.header() %> |
15 <h1 margin-bottom="1em">Programming in Lua</h1> | 16 <h1 margin-bottom="1em">Programming in Lua</h1> |
16 | 17 |
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 <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 |
19 </div> | 20 </div> |