python-premailer 0.5.7

Prepare HTML for email; embedd CSS to inline
python-premailer is a Python script which converts HTML with style tags into HTML with inline style attributes; gmail won't render nice without it!

Developer comments

I made it so I could send colorized git diffs of func-inventory around...

Use:

sudo pip install python-premailer

 python


>>> from pypremailer import Premailer
>>> head = '< html >< head >< style >foo {size:10px;}< /style >< /head >'
>>> body = 'bar< /span >< /html >'
>>> html = '%s%s' % ( head, body )
>>> p = Premailer(html)
>>> p.premail()
 < html >< head >< /head >< body >< span style="size: 10px" >bar< /span >< /body >< /html >


Get the source:

 http://github.com/ralphbean/python-premailer

On PyPI:

 http://pypi.python.org/pypi/python-premailer

last updated on:
May 28th, 2011, 5:47 GMT
price:
FREE!
developed by:
Ralph Bean
homepage:
github.com
license type:
Other/Proprietary License
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT