You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with Marketo email templates and have encountered a compatibility issue with the CSS inline and Marketo variables. I've tried several ways to get around this and the only one that works is to use find/replace tokens after the inliner has run, otherwise it will choke on the variable (even if wrapped in {{{{raw}}}} or inserted via a custom helper).
How can we reproduce this bug?
Use the character { and } in a style tag with any text between them, ex: style="{test}". Marketo's exact syntax for variables is ${varName} but the $ doesn't seem to matter for this bug.
This happens in the raw HTML when running in production mode, no specific client.
My workaround for this has been to modify the gulpfile to run a find/replace on the full text of the page after the inliner has run, replacing ||someVar|| with ${someVar}. I'm trying to avoid needing to modify the gulpfile for each project, so attempted to create a helper to output the correct syntax instead, but helpers are run before the inliner so it doesn't actually solve the issue, which is also why the raw helper fails.
Part of what I'm doing here is using the variable default values when not in production, then swapping them for the variable tokens when compiling everything for import into Marketo, so it's the production process that has an issue since the dev process neither uses the inliner nor does it output the variable tokens (the workaround works either way, but using helpers only the dev process functions).
The text was updated successfully, but these errors were encountered:
Our mailer uses variables like these {{var}}, which of course don't work with the handlebar variables used by foundation. I am prefixing them with a backslash so they don't break. Maybe \${varName} or $\{varName} works for you?
No dice. I think this is an unrelated issue since it's not handlebars that is choking on the marketo syntax, it's the CSS inliner. Escaping any of the characters involved doesn't actually do anything so far as I can tell - Handlebars will remove the \ when you escape \{{test}} but when you try it with non-handlebars markup it just renders it as-is.
I'm working with Marketo email templates and have encountered a compatibility issue with the CSS inline and Marketo variables. I've tried several ways to get around this and the only one that works is to use find/replace tokens after the inliner has run, otherwise it will choke on the variable (even if wrapped in {{{{raw}}}} or inserted via a custom helper).
How can we reproduce this bug?
Use the character
{
and}
in a style tag with any text between them, ex:style="{test}"
. Marketo's exact syntax for variables is${varName}
but the $ doesn't seem to matter for this bug.What did you expect to happen?
What happened instead?
What email clients does this happen in?
This happens in the raw HTML when running in production mode, no specific client.
My workaround for this has been to modify the gulpfile to run a find/replace on the full text of the page after the inliner has run, replacing
||someVar||
with${someVar}
. I'm trying to avoid needing to modify the gulpfile for each project, so attempted to create a helper to output the correct syntax instead, but helpers are run before the inliner so it doesn't actually solve the issue, which is also why the raw helper fails.This is my workaround for reference:
Part of what I'm doing here is using the variable default values when not in production, then swapping them for the variable tokens when compiling everything for import into Marketo, so it's the production process that has an issue since the dev process neither uses the inliner nor does it output the variable tokens (the workaround works either way, but using helpers only the dev process functions).
The text was updated successfully, but these errors were encountered: