Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couch views should support CommonJS modules #104

Open
norcal82 opened this issue Mar 18, 2016 · 0 comments
Open

Couch views should support CommonJS modules #104

norcal82 opened this issue Mar 18, 2016 · 0 comments

Comments

@norcal82
Copy link

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

https://wiki.apache.org/couchdb/CommonJS_Modules

views: {
      lib: { 
        module_name: "exports.bar = 42;" 
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant