[Rails] Pretty-Printing (X)HTML Output

Scott Mathieson
Sun, 19 Mar 2006 02:34:27 -0000

I''ve gone down (hopefully the correct) route of breaking up my
layout(s) into
common/generic elements such as the html head etc, but when the page renders
there is no consistency in indenting - it''s all over the place
(I''ve
de-tabbed everything with the same result).

Is there a standard/existing way of pretty-printing output? I''ve
searched
without any real joy, only a brief mention of ''pp'' which I
don''t know how to
use in this context (or even if it''s correct).

I''m utilising partials... my bad?

thanks in advance for any tips/solution