miketaylr / urlgrep

A tool to inline a given resources external CSS and JS assets.
3 stars 0 forks source link

Point to URL on the web, not a local file #2

Closed miketaylr closed 10 years ago

miketaylr commented 10 years ago

Local file is less useful for my purposes, and will fail unless you have all the resources too, e.g.,

mtaylor at omg-2 in ~/dev/compat/urlgrep on master
$ python inliner.py -b ~/Desktop/promises.html example/promises.html
failed to load css from assets/css/main.css
[Errno 2] No such file or directory: u'/Users/mtaylor/Desktop/assets/css/main.css'
miketaylr commented 10 years ago

Turns out this will already work. But the real feature I want is to have blah -b URI and by default it will dump to STDOUT, rather than a file. An output file is cool too.