socketstream/ss-jade — pull request #4 by americanyak (2012-09-23 19:50:48+00:00)
Title: Allow compile options for ss-jade

Not sure this is the best way to do it, but I often like to see "pretty html" when I'm doing development, and since I started a new project using Jade, I threw this together and included it in my project like such:

"ss-jade": "https://github.com/americanyak/ss-jade/tarball/master",

To add options to the compile settings in ss-jade, require the file first, call the "addCompileOptions" function, and then add the ssJade object to the SocketStream client formatters, like so:

var ssJade = require('ss-jade');
ssJade.addCompileOptions({ pretty: true });
ss.client.formatters.add(ssJade);

You might want to pull this into ss-jade a different way, but I needed to be able to add to the options, and this was my method. :)