Web::Simple::Role(3pm)

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"

Releases

6 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10–11
  4. 12–13

Authors

See Web::Simple for authors.

From libweb-simple-perl 0.033-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.