GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
POE::Component::Server::HTTPServer::TemplateHandler(3) User Contributed Perl Documentation POE::Component::Server::HTTPServer::TemplateHandler(3)

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.

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

Greg Fast <gdf@speakeasy.net>

Copyright 2003 Greg Fast.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2005-05-20 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.