Blosxom::Plugin::DataSection - Read data from __DATA__
package my_plugin; use strict; use warnings; use parent 'Blosxom::Plguin'; __PACKAGE__->load_components( 'DataSection' ); sub start { my $class = shift; my $template = $class->data_section->{'my_plugin.html'}; } 1; __DATA__ @@ my_plugin.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>My Plugin</title> </head> <body> <h1>Hello, world</h1> </body> </html>
This module extracts data from __DATA__ section of the plugin.
__DATA__
Blosxom::Plugin, Data::Section::Simple
Ryo Anazawa <anazawa@cpan.org>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Blosxom::Plugin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Blosxom::Plugin
CPAN shell
perl -MCPAN -e shell install Blosxom::Plugin
For more information on module installation, please visit the detailed CPAN module installation guide.