couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Ramage <>
Subject Re: Third Party JavaScript libraries
Date Wed, 19 Sep 2012 14:39:13 GMT

Yes, you sure can. Here is an example view using moment

The view is a little complicated, but at least you can see a spot
where moment is being used. Because it is being used in a view, you
have to have it at a certain spot in your design doc. Your design doc
should have something like this

ddoc.views.lib.moment = "// moment.js// version : 1.6.2// author : Tim
Wood// l...."

Here is a the design doc, when it is on couch:

Of course, using a couchapp tool like kanso makes this stuff easier,
but at least you should get the general idea how it is working.


On Wed, Sep 19, 2012 at 8:13 AM, Carl Bourne <> wrote:
> Hi,
> I would like to use the moments.js library in my CouchDB map views.
> Would somebody mind explaining if indeed this is possible and the best approach for adding
> Best Regards,
> Carl

View raw message