Open BevanR opened 8 years ago
var template = handlebars.compile(source, { noEscape: true })
@ webfonts-generator/src/renderCss.js:71
seems to fix unneeded escaping issues for me but I didn't do extensive testing so not sure if that introduces new bugs
Handlebars is a great templating tool. It is intended primarily (only?) for HTML templates. However,
webfonts-generator
uses it for CSS templates. This causes a number of issues;{{{sourceUrl}}}
to render"ba-icon.eot?0a8c3f7a188a221fd7bc7c97ccd91dc3?#iefix"
instead of"ba-icon.eot?0a8c3f7a188a221fd7bc7c97ccd91dc3?#iefix"
.hbs
files as HTML templates, resulting in broken indentation. This is a real pain for projects with standardised auto-formatting IDE policies.