diff web/src/luan/modules/web/Http.luan @ 264:9e0d4452e649

implement URL style module names git-svn-id: https://luan-java.googlecode.com/svn/trunk@265 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 29 Oct 2014 03:50:59 +0000
parents dddf4e85bfe4
children 4dca283b9b74
line wrap: on
line diff
--- a/web/src/luan/modules/web/Http.luan	Wed Oct 29 00:02:14 2014 +0000
+++ b/web/src/luan/modules/web/Http.luan	Wed Oct 29 03:50:59 2014 +0000
@@ -1,6 +1,6 @@
-import "Java"
-import "Table"
-import "luan.modules.web.LuanHandler"
+import "luan:Java"
+import "luan:Table"
+import "class:luan.modules.web.LuanHandler"
 
 function new_luan_handler()
 	return LuanHandler.new()
@@ -11,7 +11,7 @@
 function init_for_test()
 
 	function get_page(mod_name)
-		local mod = require(mod_name)
+		local mod = require("site:"..mod_name)
 		mod.service()
 		return Table.concat(result)
 	end