remy / inliner

Node utility to inline images, CSS and JavaScript for a web page - useful for mobile sites
MIT License
1.1k stars 165 forks source link

Inlining a string #66

Closed johngeorgewright closed 8 years ago

johngeorgewright commented 9 years ago

Hey there,

Is there a way to use inliner without requesting a URL, but instead just passing giving it a string of HTML?

Ta.

remy commented 9 years ago

Hmm. I don't think there is. It could do with a feature that reads from stdin so you can echo "<html>...." | inliner.

You can point inliner to a file though (as a workaround for now).

FelixAkk commented 9 years ago

I'd love to see this ability too :) so I made a start at supporting it in the above mentioned pull request.

remy commented 8 years ago

Live in latest release