couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: rewriter needed changes
Date Thu, 20 Jan 2011 15:45:17 GMT
On Thu, Jan 20, 2011 at 4:40 PM, Volker Mische <volker.mische@gmail.com> wrote:

>
> {
>  "from": "/page/:x/:y/:z",
>  "to": "/_show/post/:x-:y-:z/something",
>  "params": {
>    "x": {
>    "match": "\\d",
>  },
>    "y": {
>    "match": "\\d",
>  },
>    "z": {
>    "match": "\\d",
>  }
> }
>

This one is already possible in current couchapp_legacy rewriter. I'm
not a fan to have something other than :

patterns: {
    "name1": "regexp",
     ...
}

It will make the system really complex. Maybe as an option though. I
can detect if I have an object or not. I think it would be better to
say ".*"


 (and i need to find a new name for couchapp_legacy)


- benoît

Mime
View raw message