News for hackers. Stuff that matters.
Re:Ask HN: Why do we minify JavaScript, yet not HTML? by krapp on Sunday December 02, 2012 @05:39PM (#4862865)
Twig has the spaceless tag to remove whitespace from its templates, using that and its caching option might be basically what you're describing.

There are no comments on this comment yet.