-
-
Save getify/1fa1fed03d9ae9722903 to your computer and use it in GitHub Desktop.
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
// if you convert to everything returning asynquence sequences | |
ASQ( get("/api/google/sheets/resources") ) | |
.val( JSON.parse ) | |
.seq( handlebar.bind(null,"#template", "#output") ) | |
.seq( pourover ) | |
.seq( linkify ) | |
.or(function(err) { | |
console.error(err); | |
}); |
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
// if you leave everything returning promises, but use asynquence | |
ASQ() | |
.promise( get("/api/google/sheets/resources") ) | |
.val( JSON.parse ) | |
.promise( handlebar.bind(null,"#template", "#output") ) | |
.promise( pourover ) | |
.promise( linkify ) | |
.or(function(err) { | |
console.error(err); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment