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)

Repository

Bugtracker

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.

Source Distribution

inline-html-1.0.0.zip (467.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page