views:

268

answers:

2

I am messing around with GoogleDocs and it has very very primitive CSS support. If you upload an MSWord .doc or an HTML file and export it as HTML, all styles are applied inline. They have a style block in the html file, but when you upload the HTML file back to google docs, it doesn't apply any non-inline styles.

So I was thinking "maybe there's a ruby tool for this". Is there anything out there I could use to take some CSS and have it parse it into the HTML nodes, maybe some nokogiri plugin?

+1  A: 

Check out alexdunae's Premailer on GitHub: http://github.com/alexdunae/premailer

Never tried it by myself, just stumbled upon. Maybe it helps.

slu
awesome! this is perfect, thanks.
viatropos
A: 

MailStyle is another solution: http://github.com/purify/mail_style

Looks like it has easy rails integration (actionmailer, sass), but I'm not sure that's what you are/were looking for.

tassock