App::Followme::CreateIndexes - Create index file for a directory
use App::Followme::ConvertPages; my $indexer = App::Followme::CreateIndexes->new($configuration); $indexer->run();
This package builds an index for a directory containing links to all the files and directories contained in it. template. The variables described below are substituted into a template to produce the index. Loop comments that look like
<!-- loop --> <!-- endloop -->
indicate the section of the template that is repeated for each file contained in the index.
All the content of the text file. The content is passed through a subroutine before being stored in this variable. The subroutine takes one input, the content stored as a string, and returns it as a string containing html. The default subroutine, add_tags in this module, only surrounds paragraphs with p tags, where paragraphs are separated by a blank line. You can supply a different subroutine by changing the value of the configuration variable page_converter.
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 each file.
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:
If true, urls in a page will be absolute
One or more filenames or patterns to exclude from the index
If true, subdirectories will be included in the index
A space delimited list of expressions used to create the index
Name of the index file to be created
The path to the template file, relative to the base directory.
Only create index for current directory
The extension used for web pages.
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 <firstname.lastname@example.org>