Skip to content

Couch views should support CommonJS modules #104

Description

@norcal82

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;" 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions