POE::Component::Server::HTTPServer::TemplateHandler - serve templated files


POE-Component-Server-HTTPServer documentation  | view source Contained in the POE-Component-Server-HTTPServer distribution.

Index


NAME

Top

POE::Component::Server::HTTPServer::TemplateHandler - serve templated files

SYNOPSIS

Top

  use POE::Component::Server::HTTPServer;
  my $server = POE::Component::Server::HTTPServer->new();
  $server->handlers([
                      '/tmpl' => MySetupHandler->new(),
                      '/tmpl' => new_handler('TemplateHandler', './tmpl'),
		    ]);

DESCIPTION

Top

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.

SEE ALSO

Top

POE::Component::Server::HTTPServer, POE::Component::Server::HTTPServer::StaticHandler, HTML::Template

AUTHOR

Top

Greg Fast <gdf@speakeasy.net>

COPYRIGHT

Top


POE-Component-Server-HTTPServer documentation  | view source Contained in the POE-Component-Server-HTTPServer distribution.