comparison 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
comparison
equal deleted inserted replaced
263:54873a389f80 264:9e0d4452e649
1 import "Java" 1 import "luan:Java"
2 import "Table" 2 import "luan:Table"
3 import "luan.modules.web.LuanHandler" 3 import "class:luan.modules.web.LuanHandler"
4 4
5 function new_luan_handler() 5 function new_luan_handler()
6 return LuanHandler.new() 6 return LuanHandler.new()
7 end 7 end
8 8
9 9
10 10
11 function init_for_test() 11 function init_for_test()
12 12
13 function get_page(mod_name) 13 function get_page(mod_name)
14 local mod = require(mod_name) 14 local mod = require("site:"..mod_name)
15 mod.service() 15 mod.service()
16 return Table.concat(result) 16 return Table.concat(result)
17 end 17 end
18 18
19 cookies = cookies or {} 19 cookies = cookies or {}