var ddoc = {
_id: '_design/app',
language: 'javascript',
views: {},
lists: {},
shows: {},
lib: {/* see below */}
};
I can't find good documentation about what to put into ddoc.lib
, eg:
- Can I put functions:
ddoc.lib.myHelper = function () {};
? - Can I reference JavaScript files (CommonJS module?):
ddoc.lib.math = 'math.js';
In case of 2. where to store math.js
?