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 details)

Uploaded Source

File details

Details for the file inline-html-1.0.0.zip.

File metadata

  • Download URL: inline-html-1.0.0.zip
  • Upload date:
  • Size: 467.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for inline-html-1.0.0.zip
Algorithm Hash digest
SHA256 b8291390cc7ef5337cd0eaa8ff160585a7eb67d148b32e46cb744b02d15fc5aa
MD5 88b66559cdc2bbe31c258ea055c978f6
BLAKE2b-256 894d095d012f0d78e6f4ac98533981e67b1da7eb7d5ee036ee20f8240b6fae99

See more details on using hashes here.

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