Handlebars compile function with parameter parameters

0

I want to minify my template during the compile period of it in NodeJS

Searching on I found that handlebars.compile(templateLoaded); has more options besides the template parameter. I would like to know how to pass the minify parameter correctly and what are the other options that could be passed.

In this link , the highlighted lines allow this.

I asked the same question in SOEN , if someone wants to reply there too help.

    
asked by anonymous 22.07.2014 / 05:15

1 answer

1

Before we think about compiling Handlebars, think about minifying HTML.

Okay, but what about Handlebars properties, how do they get?

Actually, it's time to put the useful one together: use a minifier that compiles HTML from behind. Who exactly does this is this helper .

    
22.07.2014 / 15:24