output — Outputs data for display.
$model->output(NAME => "John Doe");
This is similar to the HTML::Template param method. It is used to set the model tags in the PageKit templates..
# 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}, ]);