NAME

Apache::PageKit::View - Bridge between Apache::PageKit and HTML::Template

SYNOPSIS

This class is a wrapper class to HTML::Template. It simplifies the calls to output a new templat, and fills in CGI forms using HTML::FillInForm and resolves <MODEL_*>, <CONTENT_*> and <PKIT_*> tags.

METHODS

The following methods are available to the user as Apache::PageKit::View API.

new
my $view = new Apache::PageKit::View;

Constructor for new object.

prepare_component
$view->prepare_component(34);

Calles the code for the component with id 34 and fills in the component template.

prepare_output

Resolves <PKIT_*> tags and fills in HTML forms using HTML::FillInForm.

output_ref

Returns a reference to the output of the parsed template.

SEE ALSO

Apache::PageKit, HTML::FillInForm, HTML::Template

AUTHOR

T.J. Mather (tjmather@anidea.com)

COPYRIGHT

Copyright (c) 2000, AnIdea Corporation. All rights Reserved. PageKit is a trademark of AnIdea Corporation.

LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Ricoh Source Code Public License for more details.

You can redistribute this module and/or modify it only under the terms of the Ricoh Source Code Public License.

You should have received a copy of the Ricoh Source Code Public License along with this program; if not, obtain one at http://www.pagekit.org/license