Mercurial Hosting > luan
comparison web/src/luan/modules/web/test.luan @ 450:4b8281c5c5af
add web/test
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 04 May 2015 23:40:52 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
449:e89bf64a0d05 | 450:4b8281c5c5af |
---|---|
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) |