NAME

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

Constructors

new

  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.

render_output

  $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

burner

  $p->burner

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

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

set_burner_by_ext

  $p->set_burner_by_ext( $ext )

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

Returns: the burner

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.

get_static

  $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

page

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