NAME

Para::Frame::Renderer::TT - Renders a TT page

Constructors

new

  Para::Frame::Renderer::TT->new( \%args )

args: template

render_output

  $p->render_output()

Burns the page and stores the result.

Returns:

  True on success (the content as a scalar-ref or sender object)

  False on failure

set_burner_by_type

  $p->set_burner_by_type( $type )

Calls Para::Frame::Burner/get_by_type and store it in the page object.

Returns: the burner

burner

  $p->burner

Returns: the Para::Frame::Burner selected for this page

burn

  $p->burn( $in, $out );

Calls Para::Frame::Burner/burn with ($in, $params, $out) there $params are set by /set_tt_params.

Returns: the burner

set_tt_params

The standard functions availible in templates. This is called before the page is rendered. You should not call it by yourself.

browser
The HTTP::BrowserDetect object. Not in StandAlone mode.
ENV
$req->env: The Environment hash (http://hoohoo.ncsa.uiuc.edu/cgi/env.html). Only in client mode.
home
$req->site->home : Para::Frame::Site/home
lang
The Para::Frame::Request/preffered_language value.
me
Holds the Para::Frame::File/url_path_slash for the page, except if an Para::Frame::Request/error_page_selected in which case we set it to Para::Frame::Request/original_response page url_path_slash. (For making it easier to link back to the intended page)
page
Holds the Para::Frame::Request/page
q
The CGI object. You will probably mostly use [% q.param() %] method. Only in client mode.
req
The req object.
site
The <Para;;Frame::Site> object.
u
$req->{'user'} : The Para::Frame::User object.

add_params

  $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.

template

May not be defined

set_template

paths

  $p->paths( $burner )

Automaticly called by Template::Provider to get the include paths for building pages from templates.

Returns: /incpath

set_ctype

sysdesig

SEE ALSO

Para::Frame