package Apache::TinyCP; use warnings; use strict; our $VERSION = "1.01"; use Apache::Constants qw(:common :response); use Cache::File; use Template; use Text::KwikiFormatish; use POSIX qw(strftime); =head1 NAME Apache::TinyCP - a tiny content provider to put up content really quickly =head1 SYNOPSIS In your Apache configuration: PerlModule Apache::TinyCP SetHandler perl-script PerlHandler Apache::TinyCP DirectoryIndex HomePage PerlSetVar ContentDir /home/www/content PerlSetVar TemplateDir /home/www/templates PerlSetVar CacheDir /home/www/var/contentcache PerlSetVar ModTimeFormat %d.%b.%y In your C directory, a file named F, along with other content files: Hello, world! *This* is the HomePage! Here's a link to AnotherPage. See [=Text::KwikiFormatish] for more info on the default formatter In your C directory, a file named F: My Site - [% title %]

[% title %]


[% content %]

Last modified: [% modtime %]

=head1 DESCRIPTION This module is a very simple handler that takes files from F, formats them somehow, and stamps on a header and footer using the template file F