local M = {} -- got from http://lua-users.org/wiki/StringInterpolation function M.interp(s, tab) return (s:gsub("($%b{})", function(w) return tab[w:sub(3, -2)] or w end)) end return M