Mercurial Hosting > luan
comparison website/src/pil.html.luan @ 391:2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Fri, 24 Apr 2015 14:05:52 -0600 |
| parents | 23d075ce1e48 |
| children | 2b9bc97f0439 |
comparison
equal
deleted
inserted
replaced
| 390:bfbbce690bba | 391:2f5cc9c2cbf0 |
|---|---|
| 4 local Shared = require "site:/Shared" | 4 local Shared = require "site:/Shared" |
| 5 | 5 |
| 6 | 6 |
| 7 function service() | 7 function service() |
| 8 Io.stdout = Http.response.text_writer() | 8 Io.stdout = Http.response.text_writer() |
| 9 Html.simply_html_page{ | 9 %> |
| 10 head = function() %> | 10 <html> |
| 11 <title>Programming in Lua</title> | 11 <head> |
| 12 <% end; | 12 <% Html.simply_html_head() %> |
| 13 body = function() %> | 13 <title>Programming in Lua</title> |
| 14 </head> | |
| 15 <body> | |
| 14 <div container> | 16 <div container> |
| 15 <% Shared.header() %> | 17 <% Shared.header() %> |
| 16 <h1 margin-bottom="1em">Programming in Lua</h1> | 18 <h1 margin-bottom="1em">Programming in Lua</h1> |
| 17 | 19 |
| 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> | 20 <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> |
| 19 | 21 |
| 20 </div> | 22 </div> |
| 21 <% end; | 23 <% Html.simply_html_body_bottom() %> |
| 22 } | 24 </body> |
| 25 </html> | |
| 26 <% | |
| 23 end | 27 end |
