App::Followme::WebData - Read metadata from a web file
use App::Followme::WebData; my $data = App::Followme::WebData->new(); my $html = App::Followme::Template->new('example.htm', $data);
This module extracts data from a web page and uses it to build variables from a template.
All data classes are first instantiated by calling new and the object created is passed to a template object. It calls the build method with an argument name to retrieve that data item, though for the sake of efficiency, all the data are read from the file at once.
This class whatever values are returned in metadata section in the header as well as the title and body extracted from the body section.
This class has the following configuration variable:
The name of the section containing the body text. The default value is 'primary'.
The name of the section containing the metadata tags. The default value is 'meta'.
The file extension of web pages. The default value is 'html'.
Copyright (C) Bernie Simon.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Bernie Simon <bernie.simon@gmail.com>
To install App::Followme, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Followme
CPAN shell
perl -MCPAN -e shell install App::Followme
For more information on module installation, please visit the detailed CPAN module installation guide.