templates for app generate

This commit is contained in:
Chris Anderson 2008-09-16 11:15:00 -04:00
parent f13415febe
commit 49148644ea
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,8 @@
// an example map function, emits the doc id
// and the list of keys it contains
function(doc) {
var k, keys = []
for (k in doc) keys.push(k);
emit(doc._id, keys);
};