Skip to content

Instantly share code, notes, and snippets.

@sharifulin
Created May 4, 2011 19:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharifulin/955794 to your computer and use it in GitHub Desktop.
Save sharifulin/955794 to your computer and use it in GitHub Desktop.
App::Index
package App::Index;
use App::Base -controller, with => ['App::News', 'App::Book', 'App::Audio'];
sub main {
my $self = shift;
my $limit = $self->conf('limit')->{index};
$self->render('index',
news => $self->news->_last(limit => $limit->{news}),
book => $self->book->_list,
part => $self->audio->_last(limit => $limit->{part}),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment