Previously called CAP::Attributes, CAP::ActionDispatch takes the PATH_INFO and dispatches requests based on the attributes you've setup in your class.
Not much has changed functionality-wise snce the developer release. However I've fixed a few bugs, specifically using subclasses now works properly. Thanks to Rhesa on IRC for pointing this out. Also the module should now work properly with other modules which use attributes, thanks to Cees for pointing me in the direction of the Attribute::Handlers module. The module is avaiable on CPAN here: http://search.cpan.org/~jaywhy/CGI-Application-Plugin-ActionDispatch-0.02/ Here is a brief example. package WebApp; use base 'CGI::Application'; use CGI::Application::Plugin::ActionDispatch; sub list : Regex('^/products/(\w+)/(\d+)') { my $self = shift; my($category, $id) = $self->snippets(); ... } 1; Feel to ask any questions and feedback is welcome. Thanks. -- Jason Yates [EMAIL PROTECTED] --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
