Last updated: 2018-05-21 17:00:22 +0100
Upstream URL: git clone http://chriswarbo.net/git/html-inliner.git
Contents of README follows
This script reads HTML data from stdin and writes it to stdout.
It looks for script
elements with a src
attribute; and link
elements with
type="text/css"
, rel="stylesheet"
and a
href
attribute.
The src
and href
URLs are resolved
(relative to BASE_URL
env var, if given), and their
contents fetched. This content is encoded as Base64 and put in a data
URI in place of the original URL.
Areas for improvement:
text/javascript
and all CSS is text/css
)img
elements.