Mercurial Hosting > luan
annotate http/src/luan/modules/http/test.luan @ 505:7bc63886d4f2
web page modules now return a function
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 May 2015 01:45:49 -0600 |
parents | 2b9bc97f0439 |
children | 9218f9cf45d3 |
rev | line source |
---|---|
450 | 1 local Io = require "luan:Io" |
494
2b9bc97f0439
change luan:web to luan:http
Franklin Schmidt <fschmidt@gmail.com>
parents:
493
diff
changeset
|
2 local Server = require "luan:http/Server" |
450 | 3 |
4 if #{...} ~= 2 then | |
494
2b9bc97f0439
change luan:web to luan:http
Franklin Schmidt <fschmidt@gmail.com>
parents:
493
diff
changeset
|
5 Io.stderr.write "usage: luan luan:http/serve dir-URI test-URI\n" |
450 | 6 return |
7 end | |
8 | |
9 local dir, test = ... | |
10 Server.init(dir) | |
11 require(test) |