diff lucene/src/luan/modules/lucene/Web_search.luan @ 503:92c3d22745b8

make _ENV optional
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 20 May 2015 23:24:46 -0600
parents 55f9f74f1e55
children 7bc63886d4f2
line wrap: on
line diff
--- a/lucene/src/luan/modules/lucene/Web_search.luan	Tue May 19 17:57:20 2015 -0600
+++ b/lucene/src/luan/modules/lucene/Web_search.luan	Wed May 20 23:24:46 2015 -0600
@@ -8,6 +8,7 @@
 local String = require "luan:String"
 local Html = require "luan:Html"
 
+local M = {}
 
 local function form() %>
 <html>
@@ -119,7 +120,7 @@
 end
 
 
-function of(index)
+function M.of(index)
 
 	return { respond = function()
 		Io.stdout = Http.response.text_writer()
@@ -147,3 +148,5 @@
 	end }
 
 end
+
+return M