13 Dec
2010
13 Dec
'10
7:10 p.m.
Hi, I want to subclass Dancer::Plugin::Authorize::Credentials but not in the DPAC namespace, but in my App namespace, essentially something that would go like this: package App:Authenticate; use base qw/Dancer::Plugin::Authorize::Credentials/; sub authorize { my ($app, $opts, $username, $passwd) = @_; ..... } 1; I have two questions: 1. Can I do this? 2. If yes, how do I set option parameters in config.yml so that they are passed as a hashref in $opts. Thank you. ----------------------------------------------------------------- dancer does for web frameworks what sqlite did to databases