Puncheur - a web application framework
package MyApp; use parent 'Puncheur'; use Puncheur::Dispatcher::Lite; use Data::Section::Simple (); __PACKAGE__->setting( template_dir => [Data::Section::Simple::get_data_section], ); any '/' => sub { my $c = shift; $c->render('index.tx'); }; 1; __DATA__ @@ index.tx <h1>It Works!</h1>
And in your console,
% plackup -MMyApp -e 'MyApp->new->to_psgi'
Puncheur is a web application framework.
THE SOFTWARE IS ALPHA QUALITY. API MAY CHANGE WITHOUT NOTICE.
my $app = MyApp->new(%opt);
Copyright (C) Masayuki Matsuki.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Masayuki Matsuki <y.songmu@gmail.com>
To install Puncheur, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Puncheur
CPAN shell
perl -MCPAN -e shell install Puncheur
For more information on module installation, please visit the detailed CPAN module installation guide.