Skip to main content

HTML stylesheet inliner, replaces resources with data-uri

Project description

inline-html

This script parses an input HTML and

  • inlines all images in <img> tags with data-uri
  • inlines all external stylesheets references using <link rel=”stylesheet” type=”text/css”…>
  • replaces all CSS references to external files (url(..)) with data-uri

Requirements

  • works with Python 2.7 and 3.4/3.5

Usage

bin/inline-html --in-file in.html --out-file out.html

License

  • GPL 2 (see LICENSE.txt)

Author

Andreas Jung/ZOPYX
www.zopyx.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for inline-html, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size inline-html-1.0.0.zip (467.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page