Catalyst::Controller::View - Catalyst Controller that directly delegates to View
package MyApp::Controller::View; use strict; use warnings; use base 'Catalyst::Controller::View';
A Catalyst Controller that delegates to View class directly, for convienent purpose.
The default action. It sets $c-stash->{template}> to the path given by the URI unless there is no such file under root directory.
$c-
root
For instance, suppose your MyApp::Controller::View class is a subclass of Catalyst::Controller::View, when the incoming path is /view/foo/bar.html, then $c-stash->{template}> has the value /view/foo/bar.html if the file root/view/foo/bar.html exists.
MyApp::Controller::View
Catalyst::Controller::View
/view/foo/bar.html
root/view/foo/bar.html
Liu Kang-min <gugod@gugod.org>
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Controller::View, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Controller::View
CPAN shell
perl -MCPAN -e shell install Catalyst::Controller::View
For more information on module installation, please visit the detailed CPAN module installation guide.