22 Mar
2012
22 Mar
'12
4:57 p.m.
Hi all, If I do this: use Dancer ':syntax'; use Dancer::Plugin::Weborama::Authentication; prefix '/companyname' => sub { post '/bidder' => sub { ... }; }; I would very much like my Authentication plugin to register a 'before' hook which only fires if the /companynameprefix is set. What's the best way of doing this? Cheers, Ovid -- Live and work overseas - http://overseas-exile.blogspot.com/ Buy the book - http://www.oreilly.com/catalog/perlhks/ Tech blog - http://blogs.perl.org/users/ovid/ Twitter - http://twitter.com/OvidPerl/