Juan Caicedo
Slow page load?
One big AJAX?
Many small AJAX?
oboe('url') .node('pattern', function(data){ // handler code });
oboe('/myapp/people') .node('people.*', function(person){ return new Person(person.firstName, person.lastName) }) .done(function(people){ // OOP people! })
var onlyPeople = []; oboe('/myapp/people') .node('people.*', function(person){ if(person.name !== 'Duke'){ onlyPeople.push(person); } }) .done(function(){ console.log(onlyPeople) // no Duke :( })
oboe('/myapp/people') .node('{ firstName lastName }', function(person){ // write to the DOM return oboe.drop; }) .done(function( finalJson){ console.log(finalJson); // {"people": []} })
router.get('/data', function(req, res) { var readStream = fetchYourData(); readStream.pipe(res) });
$ cat pipelines.json | node rerun-pipelines.js
oboe(process.stdin) .done(function(pipelines){ pipelines.forEach(rerun) })
...