From 269fbbc401440b20a5724356cf776d94be007914 Mon Sep 17 00:00:00 2001 From: Roman Axelrod Date: Wed, 14 Dec 2022 16:07:42 +0200 Subject: [PATCH] Update logic of hubspot builder. --- platforms/hubspot/hubspot-email-adapter.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platforms/hubspot/hubspot-email-adapter.js b/platforms/hubspot/hubspot-email-adapter.js index 786a19c..b965372 100644 --- a/platforms/hubspot/hubspot-email-adapter.js +++ b/platforms/hubspot/hubspot-email-adapter.js @@ -248,10 +248,11 @@ export async function buildHubspotJSONFiles(distPath, metaData) { export function handlebarsToHubl(handlebars) { + handlebars = handlebars.replace(/{{ else }}/g, '{% else %}'); + handlebars = handlebars.replace(/{{else}}/g, '{% else %}'); handlebars = handlebars.replace(/{{#if /g, '{% if module.'); handlebars = handlebars.replace(/{{\/if}}/g, '{% endif %}'); handlebars = handlebars.replace(/{{#each /g, '{% for item in module.'); - handlebars = handlebars.replace(/{{ else }}/g, '{% else %}'); handlebars = handlebars.replace(/{{\/each}}/g, '{% endfor %}'); handlebars = handlebars.replace(/{{base_url}}/g, ''); handlebars = handlebars.replace(/{esc_attr /g, '{');