A next generation web framework for the
Perl
programming language.
Back in the early days of the web there was this
wonderful Perl library called
CGI.pm
, 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.
Mojo is a new attempt at implementing this idea
using state of the art technology.
Features
- Very clean and object oriented API similar to Python WSGI and Ruby Rack .
- Full stack HTTP 1.1 client/server implementation.
- Builtin async io and prefork servers.
- CGI and FastCGI support.
- Pure Perl without any hidden magic and no requirements besides Perl 5.8.1.
- Example MVC web framework named Mojolicious (aka. Perl on Rails).
- Fresh code, based upon years of experience developing Catalyst .
Mojolicious
Just like Mojo itself the Mojolicious MVC web framework is all about minimalism and simplicity. Code generators will get you started in no time.
The core of Mojolicious is a new implementation of the famous
Routes concept, utilizing some advanced techniques from Catalyst.
Controllers are normal Perl classes and actions
just methods, there is no hidden magic to be afraid of.
Views can use all kinds of template engines
from
Mojo::Template
over
HTML::Mason
to
Template
,
the renderer will select the appropriate one just
by looking at the file extension.
Models are entirely optional and any given Perl module will
just work, the same goes for JavaScript libraries.
Just like Mojo itself the Mojolicious MVC web framework is all about minimalism and simplicity. Code generators will get you started in no time.
Installation
Getting started with Mojo is very simple because all you need is Perl 5.8.1 (or greater), thats it. On most UNIX operating systems such as Mac OS X or Linux, Perl comes preinstalled and you only have to run a single command. For Windows we suggest using Strawberry Perl .
Getting started with Mojo is very simple because all you need is Perl 5.8.1 (or greater), thats it. On most UNIX operating systems such as Mac OS X or Linux, Perl comes preinstalled and you only have to run a single command. For Windows we suggest using Strawberry Perl .
A manual installation is just as easy.
Now build great web applications and have fun!