couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ido Ran <ido....@gmail.com>
Subject Re: What is the semicolon means in rewrite rule
Date Tue, 18 Jan 2011 12:22:30 GMT
sorry - my mistake.

Anyway the : means a variable that can be later use in to and query field,
right?

Thank you,
Ido.

On Mon, Jan 17, 2011 at 2:06 PM, Stefan Matheis <
matheis.stefan@googlemail.com> wrote:

> Ido,
>
> : is no semicolon .. it's a colon (or maybe double dot)
> ; is a semicolon
>
> Stefan
>
> On Mon, Jan 17, 2011 at 12:53 PM, Ido Ran <ido.ran@gmail.com> wrote:
>
> > So any part of the url that start with semicolon is like a "variable"
> that
> > can be used in "to" and "query" parts, right?
> >
> > So is there a difference between
> > "from": ":db" and "from": ""
> >
> > Thank you,
> > Ido.
> >
> >
> > On Sat, Jan 15, 2011 at 3:46 PM, Janez Štupar <janez.stupar@gmail.com
> > >wrote:
> >
> > > There is no semicolon in the rewrite rule,
> > >
> > > but if you think colon in ":db" - that stands for named pattern, which
> > can
> > > be used as a variable - you can read more about it here:
> > > http://wiki.apache.org/couchdb/Rewriting_urls ,
> > >
> > >
> >
> http://blog.couchone.com/post/443028592/whats-new-in-apache-couchdb-0-11-part-one-nice-urlsand
> > > http://caolanmcmahon.com/on_designs_undocumented.html
> > >
> > > @Benoit - maybe you could point us towards where the rewrites are
> > > implemented - Id gladly help out with documenting its behavior if you
> > would
> > > be willing to guide me where to find the information.
> > >
> > > Regards,
> > >
> > >
> > > On Sat, Jan 15, 2011 at 12:21 PM, Ido Ran <ido.ran@gmail.com> wrote:
> > >
> > > >  rewrites config: [ { "to": "../..", "from": ":db" } ]
> > > >
> > > > Thanks,
> > > > Ido.
> > > >
> > >
> >
>

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