Catalyst::Plugin::Widget::ThroughView - Widget rendered through Catalyst::View
package MyApp::Widget::Sample; use Moose; extends 'Catalyst::Plugin::Widget::Base'; with 'Catalyst::Plugin::Widget::ThroughView'; has '+view' => ( is => 'rw', default => 'MyView' ); 1;
Returns default extension for template file name. Defaults to assume '.tt' for view inherited from Catalyst::View::TT, '.tx' for Catalyst::View::Xslate descendants and '' for remainders.
Fill stash with required data. Can be altered in descendants with Moose method modifiers.
Overriden method from Catalyst::Plugin::Widget::Base.
Returns name of template file using for widget rendering. Default is lower cased widget class name remaining (after word 'Widget') with all '::' replaced with '/' and 'extension' appended.
Returns Catalyst::View (name or instance) for widget rendering.
Returns Catalyst::View instance for widget rendering.
To install Catalyst::Plugin::Widget, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Widget
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Widget
For more information on module installation, please visit the detailed CPAN module installation guide.