Mercurial Hosting > luan
diff 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 |
line wrap: on
line diff
--- a/website/src/manual.html.luan Thu May 21 01:09:35 2015 -0600 +++ b/website/src/manual.html.luan Thu May 21 01:45:49 2015 -0600 @@ -3,13 +3,10 @@ local Html = require "luan:Html" local Http = require "luan:http/Http" local Shared = require "site:/Shared" - -local M = {} - -local heading_options = [[margin-top="2em" margin-bottom=".6em" textcolor="#233E93"]] -M.heading_options = heading_options - -function M.respond() +local heading_options = Shared.heading_options + + +return function() Io.stdout = Http.response.text_writer() %> <html> @@ -5132,5 +5129,3 @@ </html> <% end - -return M