use v5.40; package Minima v0.7.4; use Minima::Setup; sub init ($config = undef) { Minima::Setup::prepare($config); \&Minima::Setup::init; } 1; __END__ =head1 NAME Minima - Efficient web framework built with modern core classes =head1 SYNOPSIS F use Minima; Minima::init; For a "hello, world": $ minima run # or plackup app.psgi, as you prefer And that's it, you've got a functional app. To set up routes, edit F: GET / :Main home POST /login :Login process_login @ not_found :Main not_found Controllers: class Controller::Main :isa(Minima::Controller); method home { $view->set_template('home'); $self->render($view, { name => 'world' }); } Templates: %% if name

hello, [% name %]

%% end =head1 DESCRIPTION Minima is a framework for PSGI web applications built with Perl's new native object-oriented features (L). It is designed to be simple and minimal, connecting only what is necessary without getting in the way. Consequently, it's lightweight and fast. Although designed in a typical MVC fashion, no restrictions are imposed on design patterns. Controller classes have access to Plack request and response objects and can interact with them directly. Minima also provides a class for rendering HTML with ease with L