comparison src/luan/modules/http/test.luan @ 775:1a68fc55a80c

simplify dir structure
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 26 Aug 2016 14:36:40 -0600
parents http/src/luan/modules/http/test.luan@ca169567ce07
children a50803fde972
comparison
equal deleted inserted replaced
774:3e30cf310e56 775:1a68fc55a80c
1 local Luan = require "luan:Luan.luan"
2 local Io = require "luan:Io.luan"
3 local Server = require "luan:http/Server.luan"
4
5 if #{...} ~= 2 then
6 Io.stderr.write "usage: luan luan:http/serve dir-URI test-URI\n"
7 return
8 end
9
10 local dir, test = ...
11 Server.init(dir)
12 Luan.do_file(test)