POE::Component::Server::HTTPServer::TemplateHandler - serve templated files
use POE::Component::Server::HTTPServer; my $server = POE::Component::Server::HTTPServer->new(); $server->handlers([ '/tmpl' => MySetupHandler->new(), '/tmpl' => new_handler('TemplateHandler', './tmpl'), ]);
TemplateHandler resolves requests to files in the file system, then interprets them as HTML::Template templates. The context is used for setting parameters for the template.
This is written primarily as an example of extending StaticHandler, and is not particularly robust.
Greg Fast <email@example.com>
Copyright 2003 Greg Fast.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.