2 module("custom",package.seeall)
4 local dialogs = setmetatable({}, {
5 __index = function(self, name)
7 return rawget(self, name) or
8 rawget(rawset(self, name, process(http_dir.."/dialogs/"..name)), name)
11 _G.dialogs = function(...)
12 for i=1, select("#",...) do
13 dialogs[(select(i,...))]()