That seems like a bug to me =) Perhaps it should be called "_lib".
On 23 July 2012 09:01, Alexander Shorin <[email protected]> wrote: > On Sun, Jul 22, 2012 at 10:45 PM, Samuel Williams > <[email protected]> wrote: > > Futon shows views/lib under the views drop down, but obviously it isn't a > > view. Is this a bug? > > IMHO not, because you could create normal view called lib. Such view > would be by half as Commonjs module and by other half as normal view - > just two roles for single design function. > > -- > ,,,^..^,,, > > > On Sun, Jul 22, 2012 at 10:45 PM, Samuel Williams > <[email protected]> wrote: > > Thanks Alex, yeah I ended up reading that code =) > > > > Futon shows views/lib under the views drop down, but obviously it isn't a > > view. Is this a bug? > > > > On 23 July 2012 04:10, Alexander Shorin <[email protected]> wrote: > > > >> On Sun, Jul 22, 2012 at 7:02 PM, Samuel Williams > >> <[email protected]> wrote: > >> > Hi, > >> > > >> > Is there any documentation on how to use add_lib command? > >> > >> Suddenly no, but source code is your best friend ever: > >> https://github.com/apache/couchdb/blob/master/share/server/state.js > >> Note add_lib function and changed behavior of add_fun and reset ones. > >> > >> User guide to CommonJS modules could be found there: > >> http://caolanmcmahon.com/posts/commonjs_modules_in_couchdb/ > >> > >> -- > >> ,,,^..^,,, > >> > >> > >> On Sun, Jul 22, 2012 at 7:02 PM, Samuel Williams > >> <[email protected]> wrote: > >> > Hi, > >> > > >> > Is there any documentation on how to use add_lib command? > >> > > >> > Kind regards, > >> > Samuel > >> >
