Mercurial Hosting > luan
comparison website/src/manual.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 Luan = require "luan:Luan" | 1 local Luan = require "luan:Luan" |
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 local heading_options = Shared.heading_options |
7 local M = {} | 7 |
8 | 8 |
9 local heading_options = [[margin-top="2em" margin-bottom=".6em" textcolor="#233E93"]] | 9 return function() |
10 M.heading_options = heading_options | |
11 | |
12 function M.respond() | |
13 Io.stdout = Http.response.text_writer() | 10 Io.stdout = Http.response.text_writer() |
14 %> | 11 %> |
15 <html> | 12 <html> |
16 <head> | 13 <head> |
17 <% Html.simply_html_head() %> | 14 <% Html.simply_html_head() %> |
5130 <% Html.simply_html_body_bottom() %> | 5127 <% Html.simply_html_body_bottom() %> |
5131 </body> | 5128 </body> |
5132 </html> | 5129 </html> |
5133 <% | 5130 <% |
5134 end | 5131 end |
5135 | |
5136 return M |