9 lines
226 B
Lua
9 lines
226 B
Lua
return setmetatable({}, {
|
|
__index = function(t, k)
|
|
local res, engine = pcall(require, [[Trans.backend.]] .. k)
|
|
assert(res, [[No such Backend: ]] .. k)
|
|
t[k] = engine
|
|
return engine
|
|
end
|
|
})
|