Mercurial Hosting > luan
view web/src/luan/modules/web/serve.luan @ 347:612a283b3d14
improve luan/web file names and add serve.luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 12 Apr 2015 07:17:40 -0600 |
parents | |
children |
line wrap: on
line source
local Io = require "luan:Io" local Server = require "luan:web/Server" if #{...} ~= 1 then Io.stderr.write "usage: luan luan:web/serve dir-URI\n" return end Server.serve(...)