NAME

OpenFrame::WebApp::Template - a Petal template processing wrapper

SYNOPSIS

use OpenFrame::WebApp::Template::Petal;

my $tmpl = new OpenFrame::WebApp::Template::Petal;
$tmpl->file( $local_file_path )
     ->template_vars( { fred => fish } )
     ->processor( new Petal( %args ) ); # optional

try {
    $response = $tmpl->process;
} catch OpenFrame::WebApp::Template::Error with {
    my $e = shift;
    print $e->flag, $e->message;
}

DESCRIPTION

The OpenFrame::WebApp::Template::Petal class is wrapper around Petal. It inherits its functionality from OpenFrame::WebApp::Template.

Uses XHTML Petal input by default, set processor() manually to override this.

TEMPLATE TYPE

petal

AUTHOR

Steve Purkis <spurkis@epn.nu>

COPYRIGHT

Copyright (c) 2003 Steve Purkis. All rights reserved. Released under the same license as Perl itself.

SEE ALSO

Petal, OpenFrame::WebApp::Template, OpenFrame::WebApp::Template::Factory