Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
POE::Component::ServerUserEContributed:PerlvDocumentatrver::TemplateHandler(3)

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

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

DESCIPTION
       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
       POE::Component::Server::HTTPServer,
       POE::Component::Server::HTTPServer::StaticHandler, HTML::Template

AUTHOR
       Greg Fast <gdf@speakeasy.net>

COPYRIGHT
       Copyright 2003 Greg Fast.

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

perl v5.24.1		POE::Component::Server::HTTPServer::TemplateHandler(3)

NAME | SYNOPSIS | DESCIPTION | SEE ALSO | AUTHOR | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=POE::Component::Server::HTTPServer::TemplateHandler&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help