Mercurial Hosting > luan
comparison website/src/diff.html.luan @ 505:7bc63886d4f2
web page modules now return a function
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 May 2015 01:45:49 -0600 |
parents | 92c3d22745b8 |
children | d96944467ffc |
comparison
equal
deleted
inserted
replaced
504:dbdf4b8193a8 | 505:7bc63886d4f2 |
---|---|
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 local Manual = require "site:/manual.html" | 5 local Manual = require "site:/manual.html" |
6 | 6 local heading_options = Shared.heading_options |
7 local M = {} | 7 |
8 | 8 |
9 local heading_options = Manual.heading_options | 9 return function() |
10 | |
11 function M.respond() | |
12 Io.stdout = Http.response.text_writer() | 10 Io.stdout = Http.response.text_writer() |
13 %> | 11 %> |
14 <html> | 12 <html> |
15 <head> | 13 <head> |
16 <% Html.simply_html_head() %> | 14 <% Html.simply_html_head() %> |
206 <% Html.simply_html_body_bottom() %> | 204 <% Html.simply_html_body_bottom() %> |
207 </body> | 205 </body> |
208 </html> | 206 </html> |
209 <% | 207 <% |
210 end | 208 end |
211 | |
212 return M |