Mercurial Hosting > luan
comparison http/src/luan/modules/web/test.luan @ 493:1d082a0812e0
move web to http
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 15 May 2015 17:29:59 -0600 |
parents | web/src/luan/modules/web/test.luan@4b8281c5c5af |
children |
comparison
equal
deleted
inserted
replaced
492:b36cc406d3d2 | 493:1d082a0812e0 |
---|---|
1 local Io = require "luan:Io" | |
2 local Server = require "luan:web/Server" | |
3 | |
4 if #{...} ~= 2 then | |
5 Io.stderr.write "usage: luan luan:web/serve dir-URI test-URI\n" | |
6 return | |
7 end | |
8 | |
9 local dir, test = ... | |
10 Server.init(dir) | |
11 require(test) |