Para::Frame::Renderer::TT - Renders a TT page
Para::Frame::Renderer::TT->new( \%args )
args:
umask page template template_root
template_root
is the root of the template used, if not the site
root. Include files will be search for between the root and the
template dir.
$p->render_output()
Burns the page and stores the result.
If the rendering failes, may change the template and URL. The new URL can be used for another call to this method.
This method is called by Para::Frame::Request/after_jobs.
Returns:
True on success (the content as a scalar-ref or sender object) False on failure
$p->burner
Returns: the Para::Frame::Burner selected for this page
$p->set_burner_by_type( $type )
Calls Para::Frame::Burner/get_by_type and store it in the page object.
Returns: the burner
$p->set_burner_by_ext( $ext )
Calls Para::Frame::Burner/get_by_ext and store it in the page object.
Returns: the burner
$p->burn( $in, $out );
Calls Para::Frame::Burner/burn with ($in, $params, $out)
there
$params
are set by /set_tt_params.
Returns: the burner
The standard functions availible in templates. This is called before the page is rendered. You should not call it by yourself.
page
url_path_slash
. (For making it easier to link back to the intended
page)
req
object.
$resp->add_params( \%params ) $resp->add_params( \%params, $keep_old_flag )
Adds template params. This can be variabls, objects, functions.
If $keep_old_flag
is true, we will not replace existing params with
the same name.
$rend->get_static( $in, $pageref )
$pageref
must be a scalar ref.
$in
must be a IO::File or a filename to be sent to
IO::File/new.
Places the content of the file in $pageref
.
Returns: $pageref
May not be defined
$p->paths( $burner )
Automaticly called by Template::Provider to get the include paths for building pages from templates.
Returns: /incpath