view http/src/luan/modules/http/test.luan @ 693:ca169567ce07

module URIs must now include ".luan"
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 19 Apr 2016 15:54:11 -0600
parents 9218f9cf45d3
children
line wrap: on
line source

local Luan = require "luan:Luan.luan"
local Io = require "luan:Io.luan"
local Server = require "luan:http/Server.luan"

if #{...} ~= 2 then
	Io.stderr.write "usage: luan luan:http/serve dir-URI test-URI\n"
	return
end

local dir, test = ...
Server.init(dir)
Luan.do_file(test)