Closed donpark closed 13 years ago
currently app.coffee only outputs to process.stdout.
app.coffee
process.stdout
node app.js -o out/twitter.jade http://twitter.com
should save output to out/twitter.jade file.
out/twitter.jade
Just needs to instantiate a WriteStream, wraped with html2jade.Output class, then passed to html2jade.convert or html2jade.Converter instance.
WriteStream
html2jade.Output
html2jade.convert
html2jade.Converter
output directory support added to version 0.1.0.
use -o <outdir> option.
-o <outdir>
use --help to find other options.
--help
currently
app.coffee
only outputs toprocess.stdout
.syntax
should save output to
out/twitter.jade
file.implementation
Just needs to instantiate a
WriteStream
, wraped withhtml2jade.Output
class, then passed tohtml2jade.convert
orhtml2jade.Converter
instance.