donpark / html2jade

Converts HTML to Jade template. Not perfect but useful enough for non-daily conversions.
MIT License
1.18k stars 156 forks source link

allow output file/dir to be specified #2

Closed donpark closed 13 years ago

donpark commented 13 years ago

currently app.coffee only outputs to process.stdout.

syntax

node app.js -o out/twitter.jade http://twitter.com

should save output to out/twitter.jade file.

implementation

Just needs to instantiate a WriteStream, wraped with html2jade.Output class, then passed to html2jade.convert or html2jade.Converter instance.

donpark commented 13 years ago

output directory support added to version 0.1.0.

use -o <outdir> option.

use --help to find other options.