Catalyst::View::PSP - PSP View Class
# use the helper create.pl view PSP PSP # lib/MyApp/View/PSP.pm package MyApp::View::PSP; use base 'Catalyst::View::PSP'; __PACKAGE__->config( workdir => '/tmp/psp' ); 1; # Meanwhile, maybe in an 'end' action $c->forward('MyApp::View::PSP');
This is the PSP view class. Your subclass should inherit from this class.
PSP
The constructor for the PSP view.
Renders the template specified in $c->stash->{template} or $c->request->match. Template arguments are $c. Output is stored in $c->response->body.
$c->stash->{template}
$c->request->match
$c
$c->response->body
This allows your view subclass to pass additional settings to the Petal config hash.
Text::PSP, Catalyst, Catalyst::Base.
Christian Hansen, ch@ngmedia.com
ch@ngmedia.com
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::View::PSP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::View::PSP
CPAN shell
perl -MCPAN -e shell install Catalyst::View::PSP
For more information on module installation, please visit the detailed CPAN module installation guide.