export function interpolateVariables(template, variables) {
    return template.replace(/\{\{\s*(\w+)\s*\}\}/g, (match, name) => {
        return Object.hasOwn(variables, name) ? variables[name] : match;
    });
}
