"<%-" oustside of process tags is being manipulated
Closed this issue · 1 comments
lpaulger commented
the original template code looks like this:
<script type="text/javascript">
$(function() {
window.app.init(<%- JSON.stringify(config) %>);
});
</script>
and what is generated looks like this:
<script type="text/javascript">
$(function() {
window.app.init( <% -JSON.stringify(config) %> );
});
</script>
ass you can see "<%-" and "<% -" are different, causing the nodejs app that is rendering this html page not to parse and generate the config object correctly.
I'll spend some time investigating the cause of this and add my findings here.
lpaulger commented
Changing the beautify flag from true
to false
fixed my issue.