Web::Simple::Role3pm
Define roles for web::simple applications
Usage
package MyApp;use Web::Simple;with MyApp::Role;sub dispatch_request { ... }
and in the role:
package MyApp::Role;use Web::Simple::Role;around dispatch_request => sub {my ($orig, $self) = @_;return ($self->$orig,sub (GET + /baz) { ... });};
Now "MyApp" can also dispatch "/baz"
Copyright and license
See Web::Simple for the copyright and license.
Releases
6 releases since Debian 8 (Jessie); the text changed 3 times.