Mercurial Hosting > luan
comparison website/src/diff.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 |
---|---|
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 local Manual = require "site:/manual.html" | 5 local Manual = require "site:/manual.html" |
6 | 6 |
7 heading_options = Manual.heading_options | 7 local M = {} |
8 | 8 |
9 function respond() | 9 local heading_options = Manual.heading_options |
10 | |
11 function M.respond() | |
10 Io.stdout = Http.response.text_writer() | 12 Io.stdout = Http.response.text_writer() |
11 %> | 13 %> |
12 <html> | 14 <html> |
13 <head> | 15 <head> |
14 <% Html.simply_html_head() %> | 16 <% Html.simply_html_head() %> |
204 <% Html.simply_html_body_bottom() %> | 206 <% Html.simply_html_body_bottom() %> |
205 </body> | 207 </body> |
206 </html> | 208 </html> |
207 <% | 209 <% |
208 end | 210 end |
211 | |
212 return M |