[Dancer-users] Plugin hooks and prefix

Ovid curtis_ovid_poe at yahoo.com
Thu Mar 22 17:57:12 CET 2012

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?

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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20120322/132608f9/attachment.htm>

More information about the Dancer-users mailing list