App::Followme::CreateNews - Create an index with the more recent files
use App::Followme::CreateNew; my $indexer = App::Followme::CreateNews->new($configuration); $indexer->run();
This package creates an index for files in the current directory that contains the text of the most recently modified files together with links to the files, It can be used to create a basic weblog. The index is built using a template. The template has Loop comments that look like
<!-- loop --> <!-- endloop -->
and indicate the section of the template that is repeated for each file contained in the index. The following variables may be used in the template:
All the text inside the content tags in an page.
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.
The relative url of an html page.
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 following fields in the configuration file are used:
If true, urls in a page will be absolute
The the name of the tag pair containing the body text.
The directory containing the configuration file. This directory is searched to create the index.
One or more filenames or patterns to exclude from the index
Name of the news index file to be created, relative to the base directory.
The number of pages to include in the index.
The path to the template file, relative to the top directory.
The extension used for web pages. Pages with this extension are considered for inclusion in the index.
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.