Pickles - simple web application framework
% pickles-setup MyApp % cd MyApp % plackup MyApp.psgi ## etc/routes.pl router { connect '/' => { controller => 'Root', action => 'index' }; }; ## etc/config.pl return +{}; ## lib/MyApp/Context.pm package MyApp::Context; use strict; use warnings; use parent 'Pickles::Context'; use MyApp::Model::Test; __PACKAGE__->load_plugins(qw(Encode)); ## lib/MyApp/Controller/Root.pm package MyApp::Controller::Root; use strict; use warnings; use parent 'Pickles::Controller'; sub index { my( $self, $c ) = @_; } 1; __END__ ## view/index.html # Text::Xslate with TTerse syntax. <html> <head> <title>[% c.appname | html %]</title> </head> <body> <h1>Hello [% c.appname | html %]!</h1> </body> </html>
Pickles is a simple web application framework, which is based upon Plack.
Tomohiro Ikebe <ikebe {at} livedoor.jp>
Plack, Sledge
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Pickles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pickles
CPAN shell
perl -MCPAN -e shell install Pickles
For more information on module installation, please visit the detailed CPAN module installation guide.