I need to minify something but retain all handlebars mustaches. I can't find any library or plugins that seem to accomplish this.
I understand I should populate the handlebars with values first, but it's not possible for this project.
I need to minify something but retain all handlebars mustaches. I can't find any library or plugins that seem to accomplish this.
I understand I should populate the handlebars with values first, but it's not possible for this project.
var foo = { animals: { {{#each Zoo.animals} '{{@key}}': { found: true }{{#unless @last}},{{/unless}} {{/each}} } }
with that, the {{#each}} breaks it, since its not valid js (which is fine, because it turns valid after its populated with the handlebars stuff}