Web::S...e::Role(3pm)
β¨ NAME β¨
okay so bestie, welcome to Web::Simple::Role π β this is the lil module that lets you define roles for Web::Simple applications. that's it, that's the vibe. no cap. π
πΈ SYNOPSIS πΈ
so like, here's how you actually use it. first, in your app:
package MyApp;
use Web::Simple;
with MyApp::Role;
sub dispatch_request { ... }
and then over in the role, you do your lil thing with around π:
package MyApp::Role;
use Web::Simple::Role;
around dispatch_request => sub {
my ($orig, $self) = @_;
return (
$self->$orig,
sub (GET + /baz) { ... }
);
};
and boom π₯ β now MyApp can also dispatch /baz too. it's giving main character energy, fr fr. the way that role just slid in and added a whole new route?? iconic. π¦
π AUTHORS π
See Web::Simple for authors. π
π COPYRIGHT AND LICENSE π
See Web::Simple for the copyright and license. π
and that's the whole page bestie, short and sweet, just like a good commit message π«Ά
perl v5.34.0 Β· 2022-06-28 Β· that's the version and date this lil manpage was born, and honestly? it ate. periodt. π β¨
π¦ where this page comes from
- debian bookworm: libweb-simple-perl 0.033-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libweb-simple-perl 0.033-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libweb-simple-perl 0.033-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libweb-simple-perl 0.033-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libweb-simple-perl 0.033-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms