App::Followme::Variables - Supplies common methods for App::Followme modules
use App::Followme::Variables; my $var = App::Followme::Variables($configuration); my $data = $var->set_fields($directory, $filename);
App::Followme::Variables is a base class for all the modules that App::Followme uses to process a website. It is not called directly, App::Followme::HandleSite subclasses it, so all its methods are called through it. Subclasses can create other variables or override the methods in this class that create variables.
The methods which calculate the variables are:
The main method for getting variables. This method calls the other methods mentioned here. Filename is the file that the variables are being computed for. Directory is used to compute the relative url. The url computed is relative to it.
The variables calculated from the modification time are: weekday, month, monthnum, day, year, hour24, hour, ampm, minute, and second.
weekday, month,
monthnum, day, year, hour24, hour, ampm, minute,
second.
The variable is_flag is one of the filename is an index file and zero if it is not.
is_flag
The title of the page is derived from the file name by removing the filename extension, removing any leading digits,replacing dashes with spaces, and capitalizing the first character of each word.
Build the relative and absolute urls of a web page from a filename.
Compute the fields that you must read the file to calculate: title, body, and summary
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.