Stripping whitespace in generated output

When viewing the generated HTML, I notice a lot of whitespace. Is
there a simple way to hook into the output just before it is sent to
the client so I can replace multiple spaces with one space?

Or, if possible, any way to teach erb to only output one space for
every whitespace region?

--Michael

Use <%- and -%> (note the additional - characters) instead of <% and %> to eat up whitespace.

Michael Glaesemann
grzm seespotcode net