NAME
Catalyst::Plugin::Widget::ThroughView - Widget rendered through Catalyst::View
SYNOPSIS
package MyApp::Widget::Sample;
use Moose;
extends 'Catalyst::Plugin::Widget::Base';
with 'Catalyst::Plugin::Widget::ThroughView';
has '+view' => ( is => 'rw', default => 'MyView' );
1;
METHODS
extension
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.
populate_stash
Fill stash with required data. Can be altered in descendants with Moose method modifiers.
render
Overriden method from Catalyst::Plugin::Widget::Base.
template
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.
view
Returns Catalyst::View (name or instance) for widget rendering.
view_instance
Returns Catalyst::View instance for widget rendering.