sukria/Dancer — pull request #746 by bigpresh (2012-02-15 19:27:26+00:00)
Title: Pass route handler to before hooks

As I mentioned in response to @DrHyde on the mailing list, I think it makes sense for `before` hooks to receive the route handler that's about to be executed (if any) as their parameter.

This should solve @DrHyde's use case.

Example:

```perl
hook before => sub {
my $hander = shift; # a Dancer::Route object
my @attributes = attributes::get($handler->code); # in theory
};
```