Open norcal82 opened 8 years ago
Users should be able to add filename.lib.coffee files to the db/designs folder and have them imported as views are. This will give users the ability to put JS code in modules and keep our views DRY
filename.lib.coffee
db/designs
https://wiki.apache.org/couchdb/CommonJS_Modules
views: { lib: { module_name: "exports.bar = 42;" }
Users should be able to add
filename.lib.coffee
files to thedb/designs
folder and have them imported as views are. This will give users the ability to put JS code in modules and keep our views DRYhttps://wiki.apache.org/couchdb/CommonJS_Modules