Mercurial Hosting > luan
comparison website/src/index.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 | 4 |
5 local M = {} | |
5 | 6 |
6 function respond() | 7 function M.respond() |
7 Io.stdout = Http.response.text_writer() | 8 Io.stdout = Http.response.text_writer() |
8 %> | 9 %> |
9 <html> | 10 <html> |
10 <head> | 11 <head> |
11 <% Html.simply_html_head() %> | 12 <% Html.simply_html_head() %> |
29 <% Html.simply_html_body_bottom() %> | 30 <% Html.simply_html_body_bottom() %> |
30 </body> | 31 </body> |
31 </html> | 32 </html> |
32 <% | 33 <% |
33 end | 34 end |
35 | |
36 return M |