ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.31k stars 384 forks source link

compress html if desired #103

Closed sarbbottam closed 9 years ago

sarbbottam commented 9 years ago

If compress is passed as true at the time of express-handlebars instantiation, engine would return compressed markup

var exphbs = require('express-handlebars');
...
app.engine('html', exphbs({
    handlebars: handlebars,
    compress: true
}));
ericf commented 9 years ago

@sarbbottam what sort of savings does this provide over gzip on a real world test page with compress set to true over gzip of that same page without this option set?

ericf commented 9 years ago

I'm closing this because I don't believe it will have any meaningful impact on a page that's served with gzip at the HTTP level.