modlib/web.lua

7 lines
280 B
Lua
Raw Permalink Normal View History

2022-01-19 17:24:29 +01:00
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})