Mojolicious::Plugin::ZombieApocalypse - Detect Zombie apocalypse
Detect Zombie apocalypse by examining incoming requests and respond appropriately.
use Mojolicious::Lite; plugin 'zombie_apocalypse'; get '/brains' => sub { # Segfault. Don't bother serving response, there's no time. # Get the hell out of here }; app->start;
Segfault if /brains are requested. (Zombies are dead, so they're RESTful)
Mojolicious::Plugin::ZombieApocalypse inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Register condition in Mojolicious application.
Mojolicious
http://github.com/tempire/mojolicious-plugin-zombieapocalypse
0.01
Implementation stolen from Plack::Middleware::ConsoleLogger
Glen Hinkle tempire@cpan.org
To install Mojolicious::Plugin::ZombieApocalypse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::ZombieApocalypse
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::ZombieApocalypse
For more information on module installation, please visit the detailed CPAN module installation guide.