Mercurial Hosting > luan
annotate website/src/pil.html.luan @ 504:dbdf4b8193a8
add Http.per_session()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 May 2015 01:09:35 -0600 |
parents | 92c3d22745b8 |
children | 7bc63886d4f2 |
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" |
494
2b9bc97f0439
change luan:web to luan:http
Franklin Schmidt <fschmidt@gmail.com>
parents:
391
diff
changeset
|
3 local Http = require "luan:http/Http" |
387
23d075ce1e48
add website/src/Shared.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
386
diff
changeset
|
4 local Shared = require "site:/Shared" |
386
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
381
diff
changeset
|
5 |
503 | 6 local M = {} |
381
83efd1e3685c
add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
7 |
503 | 8 function M.respond() |
386
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
381
diff
changeset
|
9 Io.stdout = Http.response.text_writer() |
391
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
10 %> |
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
11 <html> |
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
12 <head> |
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
13 <% Html.simply_html_head() %> |
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
14 <title>Programming in Lua</title> |
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
15 </head> |
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
16 <body> |
381
83efd1e3685c
add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
17 <div container> |
387
23d075ce1e48
add website/src/Shared.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
386
diff
changeset
|
18 <% Shared.header() %> |
381
83efd1e3685c
add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
19 <h1 margin-bottom="1em">Programming in Lua</h1> |
83efd1e3685c
add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
20 |
83efd1e3685c
add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
21 <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
|
22 |
83efd1e3685c
add link to Programming in Lua
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff
changeset
|
23 </div> |
391
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
24 <% Html.simply_html_body_bottom() %> |
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
25 </body> |
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
26 </html> |
2f5cc9c2cbf0
replace Html.simply_html_page with simply_html_head and simply_html_body_bottom
Franklin Schmidt <fschmidt@gmail.com>
parents:
387
diff
changeset
|
27 <% |
386
db23f654f87d
make all of website use luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
381
diff
changeset
|
28 end |
503 | 29 |
30 return M |