Andy McKay

May 15, 2008

Tidying Page Templates

I know this is old hat, but I still get a fact that I can still run HTML Tidy over my Page Templates and fix up indenting and a few other things. Perhaps it's just because I've seen some horrible Rails templates that are a badly indented and hard to read. Well I've seen a few Page Templates like that, but hey at least I can clean them in one simple bash script:

tidy -i -m -xml $1