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