Catalyst::View::ClearSilver - ClearSilver View Class
# use the helper create.pl view ClearSilver ClearSilver # lib/MyApp/View/ClearSilver.pm package MyApp::View::ClearSilver use base 'Catalyst::View::ClearSilver'; __PACKAGE__->config( loadpaths => ['/path/to/loadpath', '/path/to/anotherpath'], hdfpaths => ['mydata1.hdf', 'mydata2.hdf'], template_extension => '.cs', ); 1; # Meanwhile, maybe in an 'end' action $c->forward('MyApp::View::ClearSilver');
This is the ClearSilver view class. Your subclass should inherit from this class.
ClearSilver
Renders the template specified in $c->stash->{template} or $c->action (the private name of the matched action. Calls render to perform actual rendering. Output is stored in $c->response->body.
$c->stash->{template}
$c->action
$c->response->body
added to hdf.loadpaths. default is $c->config->{root} only.
$c->config->{root}
HDF Dataset files into the current HDF object.
a sufix to add when looking for templates bases on the match method in Catalyst::Request.
match
Jiro Nishiguchi <jiro@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Catalyst, ClearSilver
ClearSilver Documentation: http://www.clearsilver.net/docs/
To install Catalyst::View::ClearSilver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::View::ClearSilver
CPAN shell
perl -MCPAN -e shell install Catalyst::View::ClearSilver
For more information on module installation, please visit the detailed CPAN module installation guide.