Apache::TinyCP

A tiny content provider to put up content really quickly
Download

Apache::TinyCP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Ian Langworth
  • Publisher web site:
  • http://search.cpan.org/~ian/

Apache::TinyCP Tags


Apache::TinyCP Description

A tiny content provider to put up content really quickly Apache::TinyCP is a tiny content provider to put up content really quickly.SYNOPSISIn your Apache configuration: PerlModule Apache::TinyCP < Location / > 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 < /Location >In your ContentDir directory, a file named HomePage, along with other content files: Hello, world! *This* is the HomePage! Here's a link to AnotherPage. See for more info on the default formatterIn your TemplateDir directory, a file named layout: < html > < head > < title >My Site - < /title > < /head > < body > < h1 >< /h1 > < hr/ > < hr/ > < p >Last modified: < /p > < /body > < /html >This module is a very simple handler that takes files from ContentDir, formats them somehow, and stamps on a header and footer using the template file template in TemplateDir. The default formatter is Text::KwikiFormatish and the end result is somewhat of a pseudo-wiki web site. It was created because I enjoyed the ease and functionality of Kwiki text for creating content, but wanted something like a single-user wiki.To set this up, create the three directories and set them as TemplateDir, ContentDir and CacheDir in the Apache configuration, like in "SYNOPSIS".By default the content files located in ContentDir are formatted with Text::KwikiFormatish and cached with Cache::File, which uses the path specified at CacheDir to store cache files. The default templating system is Template::Toolkit. The handler uses the layout template wrapper in TemplateDir. The tags , and are replaced by the formatted content, the filename, and the formatted modification date (respectively).You could probably do this by writing a formatting handler and filtering that through Apache::Template, though I'm not sure how the caching would work. You might also want to check out Apache::Sandwich. If any of these ways works for you, more power to ya.My goal was to have all my content files in one place (not htdocs) as well as use wiki text for the rapid creation of content for my site. Requirements: · Perl


Apache::TinyCP Related Software