PerlDancer/Dancer2 — pull request #338 by mickeyn (2013-07-30 19:53:46+00:00)
Title: Mickey/route fixes

- a regexp wasn't checked for leading slash (with prefix concatenation can lead to weird results)
- _init_prefix was running an unsuccessful check of the route and prefix which was problematic because 1. it wasn't done right (testing compiled regex against regex string) and 2. was meant to silently ignore route definitions that started with the prefix (thus making sure "/admin/adminuser" will not work and the user will not even know about it)
- a bunch of small fixes to correct, clean and move _init_prefix and _init_regexp functionality to BUILDARGS instead of BUILD to allow the attributes: regexp, spec_route, _params, _should_capture to become 'ro' as they should be.