Prepare HTML for email; embedd CSS to inline.
Project description
python-premailer converts HTML with style tags into HTML with inline style attributes; gmail won’t render nice without it!
I made it so I could send colorized git diffs of func-inventory around…
- Use:
html = sys.stdin.read() premailer = Premailer(html) inlined_html = premailer.premail() print inlined_html
Excuses, excuses
This definitely already exists in pypi under the name ‘premailer’, but I wanted to reimplement it without the use of lxml.
Check it out! http://pypi.python.org/pypi/premailer
Inspired by
Emogrifier (php): http://www.pelagodesign.com/sidecar/emogrifier/
Premailer (ruby): http://premailer.dialect.ca/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.