The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Blosxom::Plugin::Web;
use strict;
use warnings;
use parent 'Blosxom::Plugin';

__PACKAGE__->load_components( 'DataSection' );

my $request;

sub request {
    $request ||= do {
        require Blosxom::Plugin::Web::Request;
        Blosxom::Plugin::Web::Request->new;
    };
}

BEGIN { *req = \&request }

sub end {
    my $class = shift;
    undef $request if $request;
    $class->SUPER::end;
}

1;

__END__

=head1 NAME

Blosxom::Plugin::Web - Core set of Blosxom::Component modules

=head1 SYNOPSIS

  # In your plugins
  use parent 'Blosxom::Plugin::Web';

=head1 DESCRIPTION

This class just loads various components that make up the L<Blosxom::Plugin>
core features. You almost certainly want these.

The core components currently are:

=over 4

=item L<Blosxom::Component::DataSection>

=back

=head2 METHODS

This class inherits all methods from L<Blosxom::Plugin>
and implements the following new ones.

=over 4

=item $class->request, $class->req

Returns a L<Blosxom::Plugin::Web::Request> object.

=item $class->get_data_section, $class->merge_data_section_into

See L<Blosxom::Component::DataSection>.

=back

=head1 SEE ALSO

L<Blosxom::Plugin>

=head1 AUTHOR

Ryo Anazawa <anazawa@cpan.org>

=head1 LICENSE

This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. See L<perlartistic>.

=cut