require system

This commit is contained in:
Chris Anderson 2009-01-02 03:46:26 -08:00
parent ba6caf8d41
commit 0341b039a7
4 changed files with 29 additions and 18 deletions

View file

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