Mercurial Hosting > luan
comparison website/src/pil.html.luan @ 503:92c3d22745b8
make _ENV optional
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 20 May 2015 23:24:46 -0600 |
parents | 598123096772 |
children | 7bc63886d4f2 |
comparison
equal
deleted
inserted
replaced
502:d3183a330ff5 | 503:92c3d22745b8 |
---|---|
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:http/Http" | 3 local Http = require "luan:http/Http" |
4 local Shared = require "site:/Shared" | 4 local Shared = require "site:/Shared" |
5 | 5 |
6 local M = {} | |
6 | 7 |
7 function respond() | 8 function M.respond() |
8 Io.stdout = Http.response.text_writer() | 9 Io.stdout = Http.response.text_writer() |
9 %> | 10 %> |
10 <html> | 11 <html> |
11 <head> | 12 <head> |
12 <% Html.simply_html_head() %> | 13 <% Html.simply_html_head() %> |
23 <% Html.simply_html_body_bottom() %> | 24 <% Html.simply_html_body_bottom() %> |
24 </body> | 25 </body> |
25 </html> | 26 </html> |
26 <% | 27 <% |
27 end | 28 end |
29 | |
30 return M |