App::Followme::CreateNews - Create an index with the more recent files
use App::Followme::CreateNews; my $indexer = App::Followme::CreateNews->new($configuration); $indexer->run($directory);
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:
monthnum, day, year, hour24, hour, ampm, minute, and
The following fields in the configuration file are used:
Name of the file containing recent news items, relative to the base directory.
Name of the index files to be created in each directory.
The number of pages to include in the index.
The path to the template file, relative to the top directory.
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 <email@example.com>