App::Followme::ConvertPage - Convert text files to html
use App::Followme::ConvertPage; my $converter = App::Followme::ConvertPage->new($configuration); $converter->run($folder);
This module converts text files into web files by substituting the content into a template. The type of file converted is determined by the value of the parameter data_pkg. By default, it converts text files using the methods in App::Followme::TextData. After the conversion the original file is deleted.
Along with the content, other variables are calculated from the file name and modification date. Variables in the template are preceded by a sigil, most usually a dollar sign. Thus a link would look like:
<li><a href="$url">$title</a></li>
The following parameters are used from the configuration:
The name of the template file. The template file is either in the current directory, in the same directory as the configuration file used to invoke this method, or if not there, in the _templates subdirectory of the top directory. The default value is 'convert_page.htm'.
The name of the module that parses and retrieves data from the text file. The default value is 'App::Followme::TextData', which by default parses Markdown files.
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.