The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Followme::WebData - Read metadata from a web file

SYNOPSIS

    use App::Followme::WebData;
    my $data = App::Followme::WebData->new();
    my $html = App::Followme::Template->new('example.htm', $data);

DESCRIPTION

This module extracts data from a web page and uses it to build variables from a template.

METHODS

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.

VARIABLES

This class whatever values are returned in metadata section in the header as well as the title and body extracted from the body section.

CONFIGURATION

This class has the following configuration variable:

body_tag

The name of the section containing the body text. The default value is 'primary'.

metadata_tag

The name of the section containing the metadata tags. The default value is 'meta'.

extension

The file extension of web pages. The default value is 'html'.

LICENSE

Copyright (C) Bernie Simon.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Bernie Simon <bernie.simon@gmail.com>