require system
This commit is contained in:
parent
ba6caf8d41
commit
0341b039a7
4 changed files with 29 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue