| OpenFrame-WebApp documentation | view source | Contained in the OpenFrame-WebApp distribution. |
OpenFrame::WebApp::Segment::Template::Loader - a pipeline segment to load templates.
use Pipeline; use OpenFrame::WebApp; my $pipe = new Pipeline; # ... add segments that put a Template in the store ... $pipe->add_segment(new OpenFrame::WebApp::Segment::Template::Loader); $pipe->dispatch; # will load any OpenFrame::WebApp::Template in the store.
The OpenFrame::WebApp::Segment::Template::Loader class is an
OpenFrame::WebApp::Segment::Template segment and inherits its interface from
there. On dispatch(), it looks for a OpenFrame::WebApp::Template object
(see below), calls its process() method, and returns the result.
process first template found in the store & returns the result (if any).
process template & return an OpenFrame::Response.
generate response when template not found.
generate response on template error.
Only include detailed error messages if in debug mode (ie: on a development, not production server).
Steve Purkis <spurkis@epn.nu>
Copyright (c) 2003 Steve Purkis. All rights reserved. Released under the same license as Perl itself.
| OpenFrame-WebApp documentation | view source | Contained in the OpenFrame-WebApp distribution. |