couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Williams <space.ship.travel...@gmail.com>
Subject Re: add_lib?
Date Mon, 23 Jul 2012 08:41:49 GMT
That seems like a bug to me =)

Perhaps it should be called "_lib".

On 23 July 2012 09:01, Alexander Shorin <kxepal@gmail.com> wrote:

> On Sun, Jul 22, 2012 at 10:45 PM, Samuel Williams
> <space.ship.traveller@gmail.com> 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
> <space.ship.traveller@gmail.com> 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 <kxepal@gmail.com> wrote:
> >
> >> On Sun, Jul 22, 2012 at 7:02 PM, Samuel Williams
> >> <space.ship.traveller@gmail.com> 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
> >> <space.ship.traveller@gmail.com> wrote:
> >> > Hi,
> >> >
> >> > Is there any documentation on how to use add_lib command?
> >> >
> >> > Kind regards,
> >> > Samuel
> >>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message