Removing white space in templates?

Ben Johnson <rails-mailing-list@andreas-s.net>
writes:

Is there something similar to this in the rhtml templates?

http://smarty.php.net/manual/en/language.function.strip.php

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.

HTH.