diff website/src/index.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 7cc9d4a53d3b
line wrap: on
line diff
--- a/website/src/index.html.luan	Thu May 21 01:09:35 2015 -0600
+++ b/website/src/index.html.luan	Thu May 21 01:45:49 2015 -0600
@@ -2,9 +2,8 @@
 local Html = require "luan:Html"
 local Http = require "luan:http/Http"
 
-local M = {}
 
-function M.respond()
+return function()
 	Io.stdout = Http.response.text_writer()
 %>
 <html>
@@ -32,5 +31,3 @@
 </html>
 <%
 end
-
-return M