This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require("fs"), | |
| qPromise = require('q'), | |
| pioPromise = require('promised-io/promise'); | |
| pioPromise.node = pioPromise.convertNodeAsyncFunction; | |
| // var q = qPromise; // calls to 'fail' do nothing | |
| var q = pioPromise; // calls to fail work fine | |
| desc("promise async test task"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var bogart = require('bogart') | |
| , jade = require('jade'); | |
| require('bogart').viewEngine.addEngine('jade', function(path, opts, read, cache) { | |
| when(cache(path) || read(path), function(tpl) { | |
| var fn; | |
| if(typeof tpl === "function") { | |
| fn = tpl; | |
| } else { |
NewerOlder