modlib/web.lua
2022-01-19 17:24:29 +01:00

7 lines
280 B
Lua

return setmetatable({}, {__index = function(self, module_name)
if module_name == "uri" or module_name == "html" then
local module = assert(loadfile(modlib.mod.get_resource(modlib.modname, "web", module_name .. ".lua")))()
self[module_name] = module
return module
end
end})