git://git.onelab.eu
/
myops.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ef20e71dd05b8b4d4f16c3c597e49f84a6917efc
[myops.git]
/
web
/
query
/
vendor
/
couchapp
/
lib
/
list.js
1
// Helpers for writing server-side _list functions in CouchDB
2
exports.withRows = function(fun) {
3
var f = function() {
4
var row = getRow();
5
return row && fun(row);
6
};
7
f.iterator = true;
8
return f;
9
}
10
11
exports.send = function(chunk) {
12
send(chunk + "\n")
13
}