Removing white space in templates?

Ben Johnson <>

Is there something similar to this in the rhtml templates?

The reason I ask is because I render some templates in my RJS files. The
less white space there is, the smaller the size of javascript the client
has to download.

emacs-rails (emacs mode for rails) automatically does that for every file you
open and save in it. This mode only works for GNU Emacs though.