Minify html views layouts


Does anyone have any tips for minifying views and layouts?

IE removing whitespace

Thanks ahead

I guess you’re talking about reducing the code produced by your rails

Are you using the -%> notation such as :
<% if condition … -%>
The dash before the closing tag is a shortcut that make sure no new
line will be added at this point.

This is the only trick I can think about.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs