Name

output — Outputs data for display.

Synopsis

      $model->output(NAME => "John Doe");
     

Description

This is similar to the HTML::Template param method. It is used to set the model tags in the PageKit templates..

Examples

  # set multiple paramaters
  $model->output(firstname => $firstname,
               lastname => $lastname);

  # set multiple paramaters with hash ref
  $model->output({firstname => $firstname,
               lastname => $lastname});

  # sets <MODEL_LOOP NAME="foo">
  #       <MODEL_VAR NAME="bar"/>
  #       <MODEL_VAR NAME="baz"/>
  #      </MODEL_LOOP>
  $model->output(foo => [
			 {bar => $bar1, baz => $baz1},
			 {bar => $bar2, baz => $baz2},
			]);