Open mattisherwood opened 2 years ago
Actually, an update - we've now swapped to using <%StoreColor%>
within the CSS instead, as that does work.
We then parse the source afterwards with...
source
.replace(/<%/g, '{{')
.replace(/%>/g, '}}')
...to return it to the required format.
It's a bit of a workaround, but enough for us for the time being.
I'll let you decide if you want to close the issue or not.
We have an email template system that is needing some codeblock
{{Variables}}
placed within the CSS. e.g.and I was hoping that they would be returned as...
...particularly when I found that HBS is included by default in
juice.codeBlocks
.However, I've found they're actually returned as...
I did some digging and found that the encoding/decoding makes use of HTML comments in line 20 & 29 in
juice/cherio.js
.Is that why? Does it currently support HBS in the HTML but not in the CSS?
Do you know if that might be something that could be easily fixed so they can also be retained within the CSS?
Many many thanks.