Terse::Controller - models made simple.
Version 0.23
package My::App::Model::Data; use base 'Terse::Model'; sub do_something { ... } 1; ... If using Terse::App package My::App::Controller::Overview; use base 'Terse::Controller'; sub overview :get { $_[1]->response->data = $_[1]->model('data')->do_something(); } ... else package MyApp; use base 'Terse::Controller'; use MyAppModel; sub build_controller { $_[0]->models->data = MyAppModel->new(); } sub overview :get { $_[1]->response->data = $_[1]->model('data')->do_something(); }
LNATION, <email at lnation.org>
<email at lnation.org>
Terse.
To install Terse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Terse
CPAN shell
perl -MCPAN -e shell install Terse
For more information on module installation, please visit the detailed CPAN module installation guide.