sukria/Dancer — Issue #736: Regexp support in prefix
Author: knutov
Created: 2012-01-29 04:11:21+00:00
State: open

It would be nice if Dancer will have regexp support in prefix. It can be very convenient in cases when a lot of routes like this:
`/user/(\d+)/domains/(\d+)/some/action`;
Long strings, ugly code.

With regexp support It can be like this:

```perl
prefix qr{^/user/(\d+)/domains/(\d+)/};
get 'some/action' => sub {};
get 'simple' => sub {};
get qr{'some/action/(\d+?)/more'} => sub {};
```