html2slim icon indicating copy to clipboard operation
html2slim copied to clipboard

Accept input from STDIN as well as a file

Open roryokane opened this issue 10 years ago • 2 comments

I would like to be able to do pbpaste | html2slim | pbcopy to process the contents of the clipboard.

Current usage:

Usage: html2slim INPUT_FILENAME_OR_DIRECTORY [OUTPUT_FILENAME_OR_DIRECTORY] [options]

Desired usage:

Usage: html2slim [INPUT_FILENAME_OR_DIRECTORY [OUTPUT_FILENAME_OR_DIRECTORY]] [options]

erb2slim should be changed similarly, of course.

roryokane avatar Jun 21 '15 16:06 roryokane

This is throwing a segfault for me. This exact use case is the only reason I even have to use html2slim, so +1.

tlindsay avatar Feb 09 '16 23:02 tlindsay

Could be easily done in a PR, any takers?

joaomilho avatar Aug 21 '17 06:08 joaomilho