export const mustache = (string: string, data: Record = {}) => { return Object.entries(data).reduce((res, [key, value]) => { const mainRe = new RegExp(`(?