Catalyst-View-Component-jQuery
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
examples/TestApp/Controller/Root.pm view on Meta::CPAN
],
);
$c->view('TT')->jquery->construct_plugin(
name => 'Superfish',
target_selector => 'ul.sf-menu',
use_supersubs => 1,
options =>
'delay : 500,
animation : { opacity : "show" },
dropShadows : true',
supersubs_options =>
'minWidth : 12,
maxWidth : 13,
extraWidth : 1',
);
$c->stash(menu => $suckerfish->output);
}
sub end :Private {
my ( $self, $c ) = @_;
$c->forward('TestApp::View::TT') unless $c->res->body;
}
sub index
:Path
:MenuPath('/Home')
:MenuTitle('Home Page')
{
my ( $self, $c ) = @_;
}
sub dostuff
:Local
:MenuPath('/Stuff')
:MenuTitle('Do Stuff')
{
my ( $self, $c ) = @_;
$c->stash->{template} = 'index.tt2';
$c->forward('index');
}
sub prettypix
:Local
:MenuPath('/Pretty/Pictures')
:MenuTitle('See pretty pictures')
{
my ( $self, $c ) = @_;
$c->stash->{template} = 'index.tt2';
$c->forward('index');
}
sub printtemplate
:Local
:MenuPath('/How it works/The template')
:MenuTitle('The template')
{
my ( $self, $c ) = @_;
my $text;
{ local (@ARGV, $/) = 'TestApp/root/src/index.tt2'; $text = <> }
$c->res->content_type('text/plain');
$c->res->body($text);
}
1;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.983 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )