inline-html

HTML stylesheet inliner, replaces resources with data-uri


Keywords
DocRaptor
License
GPL-2.0
Install
pip install inline-html==1.0.0

Documentation

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