mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +01:00
7 lines
280 B
Lua
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}) |