HTML Beautifier
A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates.
Get it
Use 'sudo' on the last line if appropriate.
svn checkout http://paulbattley.googlecode.com/svn/htmlbeautifier/trunk htmlbeautifier
cd htmlbeautifier
ruby setup.rb
Use it
htmlbeautifier < source.rhtml > dest.rhtml
What is the textmate command to beautify the content of the current file and replace it with the beautified output? How would you apply it on a directoy, perhaps recursively from within textmate?
Thanks!! That was very useful!