{"ScriptPreparationCode":null,"TestCases":[{"Name":"mustache","Code":"const messageId = \u0022hello {{planet}} what a {{weather}} day is in {{country}} today!\u0022;\r\nconst parameters = [{\u0022planet\u0022: \u0022earth\u0022}, {\u0022weather\u0022: \u0022sunny\u0022}, {\u0022country\u0022:\u0022Scotland\u0022}];\r\nconsole.log(Mustache.render(messageId,parameters));","IsDeferred":false},{"Name":"non mustache","Code":"const messageId = \u0022hello {{planet}} what a {{weather}} day is in {{country}} today!\u0022;\r\nconst parameters = [{\u0022planet\u0022: \u0022earth\u0022}, {\u0022weather\u0022: \u0022sunny\u0022}, {\u0022country\u0022:\u0022Scotland\u0022}];\r\nconsole.log(messageId ? Object.entries(parameters).reduce(\r\n (res, [key, value]) =\u003E\r\n res.replace(new RegExp(\u0060{{\\\\s*${key}\\\\s*}}\u0060, \u0022g\u0022), value),\r\n messageId\r\n )\r\n : \u0022\u0022);","IsDeferred":false}]}