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

Doc or Feature: Add ability to intercept body after rendering is complete. Eg. for Minifying. #49

Closed blockmar closed 10 years ago

blockmar commented 10 years ago

I would like the ability to intercept the rendered result before it is sent as req.body to do html minification.

ericf commented 10 years ago

Like this? https://github.com/ericf/express3-handlebars/pull/41

ericf commented 10 years ago

See https://github.com/ericf/express3-handlebars/issues/39#issuecomment-26743921

I'm going to close this as a dup of #39. Hopefully I can find some time soon to merge #41 and cut a release.

blockmar commented 10 years ago

Ok, sounds like #39 and #41 it will solve my problem. Thanks!