equal
deleted
inserted
replaced
10 local tostring = tostring; |
10 local tostring = tostring; |
11 |
11 |
12 local invite_storage = module:open_store(); |
12 local invite_storage = module:open_store(); |
13 local inviter_storage = module:open_store("inviter"); |
13 local inviter_storage = module:open_store("inviter"); |
14 |
14 |
15 local serve = module:depends"http_files".serve; |
15 local serve; |
|
16 if not pcall(function () |
|
17 local http_files = require "net.http.files"; |
|
18 serve = http_files.serve; |
|
19 end) then |
|
20 serve = module:depends"http_files".serve; |
|
21 end |
16 |
22 |
17 module:depends"adhoc"; |
23 module:depends"adhoc"; |
18 module:depends"http"; |
24 module:depends"http"; |
19 |
25 |
20 local function apply_template(template, args) |
26 local function apply_template(template, args) |