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


OpenFrame-WebApp documentation  | view source Contained in the OpenFrame-WebApp distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

Top

petal

AUTHOR

Top

Steve Purkis <spurkis@epn.nu>

COPYRIGHT

Top

SEE ALSO

Top

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


OpenFrame-WebApp documentation  | view source Contained in the OpenFrame-WebApp distribution.