Re:Ask HN: Why do we minify JavaScript, yet not HTML?
by salehenrahman on Sunday December 02, 2012 @04:21PM
(#4862563)
Not sure. We simply used a templating engine. Either a) we didn't take the time to read the documentation properly to find out if there is an efficient minifier, or b) there isn't an efficient templating engine that minifies.
I'm betting big on using preprocessor languages, such as HAML, or Jade.
EDIT: Wait, isn't that something the template compiler could do?