Mercurial Hosting > luan
comparison website/src/manual.html.luan @ 503:92c3d22745b8
make _ENV optional
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 20 May 2015 23:24:46 -0600 |
parents | d3183a330ff5 |
children | 7bc63886d4f2 |
comparison
equal
deleted
inserted
replaced
502:d3183a330ff5 | 503:92c3d22745b8 |
---|---|
2 local Io = require "luan:Io" | 2 local Io = require "luan:Io" |
3 local Html = require "luan:Html" | 3 local Html = require "luan:Html" |
4 local Http = require "luan:http/Http" | 4 local Http = require "luan:http/Http" |
5 local Shared = require "site:/Shared" | 5 local Shared = require "site:/Shared" |
6 | 6 |
7 heading_options = [[margin-top="2em" margin-bottom=".6em" textcolor="#233E93"]] | 7 local M = {} |
8 | 8 |
9 function respond() | 9 local heading_options = [[margin-top="2em" margin-bottom=".6em" textcolor="#233E93"]] |
10 M.heading_options = heading_options | |
11 | |
12 function M.respond() | |
10 Io.stdout = Http.response.text_writer() | 13 Io.stdout = Http.response.text_writer() |
11 %> | 14 %> |
12 <html> | 15 <html> |
13 <head> | 16 <head> |
14 <% Html.simply_html_head() %> | 17 <% Html.simply_html_head() %> |
5127 <% Html.simply_html_body_bottom() %> | 5130 <% Html.simply_html_body_bottom() %> |
5128 </body> | 5131 </body> |
5129 </html> | 5132 </html> |
5130 <% | 5133 <% |
5131 end | 5134 end |
5135 | |
5136 return M |