I’m doing some web-dev and the designers slice and export from photoshop. The generated code is horrendous. The first thing i’m doing is taking everything out of the tags and putting them in css files. So i was wondering if there was a tool that can automate this?
I’m doing some web-dev and the designers slice and export from photoshop. The generated
Share
I would write my own script, here You can take some inspiration:
This does the opposite, but if You like Ruby, may be You can study the code:
search for premailer on github, It use the Hpricot gem.
Of course, if don’t want to spend time coding You can use tidy:
If you your-crap-inlined-file.html contain:
<p style="color:red;"> Some TEXT ...</p>It will replace It inserting something like this
on top of your file and at the same time It replace your inline code with: