Mine
public text v1 · immutablesub index : Global {
my ( $self, $c ) = @_;
#cache self
#$c->cache_page( '3600' );
my $articles =
$c->model('Letsgetdugg::Model::LetsGetDugg::Articles')->search(undef,{page => 1,rows=>10},)->all;
$c->stash->{articles}=$articles;
$c->stash->{template}="index.tt2";
#$c->stash->{title}="blah!";
}