Skip to content

Commit

Permalink
readme tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Mar 14, 2011
1 parent 722c14f commit 535954a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,15 @@ This will output the inlined markup. You can easily save this to a new file for

inliner http://remysharp.com > remysharp.html

### via library

The inliner.js script requires jsdom to be installed via `npm install jsdom`, otherwise you should be good to run:

var inliner = require('./lib/inliner');
var inliner = require('inliner');

inliner('http://remysharp.com', function (html) {
// compressed and inlined HTML page
console.log(html);
});

Note that if you include the inliner script via a git submodule, it requires jsdom to be installed via `npm install jsdom`, otherwise you should be good to run.

I plan to include a web service at some point, but obviously this won't be able to access localhost domains.

Once you've inlined the crap out of the page, add the `manifest="self.appcache"` to the `html` tag and create an empty file called self.manifest ([read more](http://remysharp.com/2011/01/31/simple-offline-application/)).
Expand Down

0 comments on commit 535954a

Please sign in to comment.