Forum: Ruby on Rails Ruby equivalent to PHP Beautify?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Toph (Guest)
on 2006-02-14 21:06
(Received via mailing list)
Hi all,

I am working on a project in Rails for my senior seminar
class. I am fairly new to Rails but I have done a major
project, so I know a little. The one thing I cannot find
however is a way to make the html code that is output
look any cleaner. So, I was wondering if there was a
function/library/extension that worked like PHP
beautify. Thanks for your input in this matter. I am sure
I will be asking lots of questions as my project gets even
deeper, so I apologize if you get to know me too well ;-)
Thanks again and have a great day!

Oh, and to anyone who cares, happy Valentine's Day!

--
Topher Fangio
removed_email_address@domain.invalid
http://www.fangiotophia.com

Website Specialist
Fangiotophia Designs
(325) 660-7141
Ben M. (Guest)
on 2006-02-15 06:02
(Received via mailing list)
There is a ruby interface to tidy:

http://rubyforge.org/projects/tidy/

Not sure whay you would need to do to hook it into a rails app.

You could also rewrite your rhtml files as rxml... at least I would
think that building
the page as an xml tree and then writing it out would create a nice neat
source output.

b
Ben M. (Guest)
on 2006-02-15 06:02
(Received via mailing list)
There is a ruby interface to tidy:

http://rubyforge.org/projects/tidy/

Not sure why you would need to do to hook it into a rails app.

You could also rewrite your rhtml files as rxml... at least I would
think that building
the page as an xml tree and then writing it out would create a nice neat
source output.

b
Leo -. (Guest)
on 2006-04-14 12:25
(Received via mailing list)
If someone is still interested on this topic:

http://www.cosinux.org/blogs/dam/pages/rails-tidy
This topic is locked and can not be replied to.