Mercurial Hosting > luan
view web/src/luan/modules/web/test.luan @ 467:f86bf532f87c
improve LuanServlet to allow for URL mapping
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 08 May 2015 12:10:53 -0600 |
parents | 4b8281c5c5af |
children |
line wrap: on
line source
local Io = require "luan:Io" local Server = require "luan:web/Server" if #{...} ~= 2 then Io.stderr.write "usage: luan luan:web/serve dir-URI test-URI\n" return end local dir, test = ... Server.init(dir) require(test)