| 1 | package Suffit; | ||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | =encoding utf8 | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | Suffit - Suffit Library Bundle | ||
| 11 | |||
| 12 | =head1 SYNOPSIS | ||
| 13 | |||
| 14 | #!/usr/bin/perl -w | ||
| 15 | package MyApp; | ||
| 16 | our $VERSION = '0.01'; | ||
| 17 | use parent 'Suffit'; | ||
| 18 | sub init { shift->routes->any('/' => {text => 'Hello World!'}) } | ||
| 19 | 1; | ||
| 20 | |||
| 21 | package main; | ||
| 22 | use Mojo::Server; | ||
| 23 | Mojo::Server->new->build_app('MyApp', datadir => '/tmp')->start(); | ||
| 24 | |||
| 25 | # Now try to run it: | ||
| 26 | # perl myapp.pl daemon -l http://*:8080 | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | Suffit Library Bundle combines multiple complementary libraries into a single | ||
| 31 | cohesive package, enabling modular, scalable, and efficient development | ||
| 32 | |||
| 33 | =head1 EXAMPLE | ||
| 34 | |||
| 35 | See F<eg/myapp.pl> file | ||
| 36 | |||
| 37 | =head1 HISTORY | ||
| 38 | |||
| 39 | See C<Changes> file | ||
| 40 | |||
| 41 | =head1 TO DO | ||
| 42 | |||
| 43 | See C<TODO> file | ||
| 44 | |||
| 45 | =head1 SEE ALSO | ||
| 46 | |||
| 47 | L<Acrux>, L<WWW::Suffit>, L<Mojolicious>, L<WWW::Suffit::Server> | ||
| 48 | |||
| 49 | =head1 AUTHOR | ||
| 50 | |||
| 51 | Serż Minus (Sergey Lepenkov) L<https://www.serzik.com> E<lt>abalama@cpan.orgE<gt> | ||
| 52 | |||
| 53 | =head1 COPYRIGHT | ||
| 54 | |||
| 55 | Copyright (C) 1998-2026 D&D Corporation | ||
| 56 | |||
| 57 | =head1 LICENSE | ||
| 58 | |||
| 59 | This program is distributed under the terms of the Artistic License Version 2.0 | ||
| 60 | |||
| 61 | See the C<LICENSE> file or L<https://opensource.org/license/artistic-2-0> for details | ||
| 62 | |||
| 63 | =cut | ||
| 64 | |||
| 65 | 1 | our $VERSION = '1.01'; | |
| 66 | |||
| 67 | 1 | ▶ | use parent qw/WWW::Suffit::Server/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 68 | |||
| 69 | 1 | 1; | |
| 70 | |||
| 71 | __END__ | ||