<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Back in the early days of the web there was this wonderful Perl library called
CGI, many people only learned Perl because of it.
It was simple enough to get started without knowing much about the language
and powerful enough to keep you going, learning by doing was much fun.
While most of the techniques used are outdated now, the idea behind it is
not.
Mojolicious is a new attempt at implementing this idea using state of the art
technology.

Features:

    * An amazing MVC web framework supporting a simplified single file mode
      through Mojolicious::Lite.

    * Very clean, portable and Object Oriented pure Perl API without any
      hidden magic and no requirements besides Perl 5.8.1.

    * Full stack HTTP 1.1 and WebSocket client/server implementation with
      IPv6, TLS, IDNA, pipelining, chunking and multipart support.

    * Builtin async IO and prefork web server supporting epoll, kqueue, hot
      deployment and UNIX domain socket sharing, perfect for embedding.

    * CGI, FastCGI and PSGI support.

    * Fresh code, based upon years of experience developing Catalyst.

    * Powerful out of the box with RESTful routes, plugins, sessions, signed
      cookies, static file server, testing framework, Perl-ish templates,
      JSON, I18N, first class Unicode support and much more for you to
      discover!

Simplicity:

    Web development for humans, making hard things possible and everything
    fun.

        use Mojolicious::Lite;

        get '/time' =&gt; 'clock';

        websocket '/echo' =&gt; sub {
            my $self = shift;
            $self-&gt;receive_message(
                sub {
                    my ($self, $message) = @_;
                    $self-&gt;send_message("echo: $message");
                }
            );
        };

        get '/fetch' =&gt; sub {
            my $self = shift;
            $self-&gt;render_data(
                $self-&gt;client-&gt;get('http://mojolicious.org')-&gt;res-&gt;body);
        };

        post '/:name' =&gt; sub {
            my $self = shift;
            my $name = $self-&gt;param('name') || 'Mojo';
            $self-&gt;render_text("Hello $name!");
        };

        shagadelic;
        __DATA__

        @@ clock.html.ep
        % my ($second, $minute, $hour) = (localtime(time))[0, 1, 2];
        The time is &lt;%= $hour %&gt;:&lt;%= $minute %&gt;:&lt;%= $second %&gt;.

    For more user friendly documentation see "perldoc Mojolicious::Guides"
    and "perldoc Mojolicious::Lite".

Architecture:

    .---------------------------------------------------------------.
    |                             Fun!                              |
    '---------------------------------------------------------------'
    .---------------------------------------------------------------.
    |                                                               |
    |                .----------------------------------------------'
    |                | .--------------------------------------------.
    |   Application  | |              Mojolicious::Lite             |
    |                | '--------------------------------------------'
    |                | .--------------------------------------------.
    |                | |                 Mojolicious                |
    '----------------' '--------------------------------------------'
    .---------------------------------------------------------------.
    |                             Mojo                              |
    '---------------------------------------------------------------'
    .-------. .-----------. .--------. .------------. .-------------.
    |  CGI  | |  FastCGI  | |  PSGI  | |  HTTP 1.1  | |  WebSocket  |
    '-------' '-----------' '--------' '------------' '-------------'

To install this module type the following:

    perl Makefile.PL
    make
    make test
    make install
</pre></body></html>