Hi!
Anyone knows a nice way to minify HTML output of erb templates in Rails? Right now I use a middleware that gsubs "\n"'s between close and open tags, but this happens on each page load and depending on a page size can be taxing on performance.
I'm looking to write some kind of a template engine (based on, or compositing Erubis), that will tap into Rails template handlers chain so that the compiled result will be cached by rails. Ideally I also do not want to change all my template files extension from *.erb to something else.
Any advises?