- enable 'Static', path => qr,/static/,;
- enable 'Log4perl', category => 'plack', conf => 'log.conf';
- enable \&require_admin;
- enable_if \&some_auth_required, 'Auth::Basic', authenticator => \&authenticate, realm => 'Gruntmaster 6000';
- Plack::App::Gruntmaster->to_app
+ enable \&add_headers;
+ enable 'Static', path => qr,^/static/,;
+ enable 'Log4perl', category => 'plack';
+ enable_if { shift->{HTTP_AUTHORIZATION} } 'Auth::Basic', authenticator => \&authenticate, realm => 'Gruntmaster 6000';
+ enable sub { my $app = $_[0]; sub { $_[0]->{'gruntmaster.dbic'} = $db; $app->($_[0]) } };
+ Plack::App::Gruntmaster->run_if_script