On Wed, 15 Feb 2012 15:58:15 +0000
David Cantrell <[email protected]> wrote:

> get '/billing' => sub :CapoFamiglia :Accountants { ... };
> get '/killing' => sub :CapoFamiglia :Hitmen      { ... };
> 
> So, my question is ... how can I get at those subroutine references
> from inside my 'before' hook so that I can
> attributes::get($route_handler) ?

Probably the easiest, and most sane, way, would be for the before hook
to get passed the route handler as a parameter.

That's a dead simple change to make, and should, I believe, do the job.

I'll check none of the other core devs object to this (I can't think
why they would), then Make It So. 



-- 
David Precious ("bigpresh") <[email protected]>
http://www.preshweb.co.uk/     www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin    www.preshweb.co.uk/facebook
www.preshweb.co.uk/cpan        www.preshweb.co.uk/github
_______________________________________________
Dancer-users mailing list
[email protected]
http://www.backup-manager.org/cgi-bin/listinfo/dancer-users

Reply via email to