
Mojo - The Web In A Box!

use base 'Mojo';
sub handler {
my ($self, $tx) = @_;
# Hello world!
$tx->res->code(200);
$tx->res->headers->content_type('text/plain');
$tx->res->body('Congratulations, your Mojo is working!');
return $tx;
}

Mojo is a collection of libraries and example web frameworks for web framework developers.
If you are searching for a higher level MVC web framework you should take a look at Mojolicious.
Don't be scared by the amount of different modules in the distribution, they are all very loosely coupled. You can just pick the ones you like and ignore the rest, there is no tradeoff.
For userfriendly documentation see Mojo::Manual.

Mojo implements the following attributes.
home my $home = $mojo->home;
$mojo = $mojo->home(Mojo::Home->new);
log my $log = $mojo->log;
$mojo = $mojo->log(Mojo::Log->new);

Mojo inherits all methods from Mojo::Base and implements the following new ones.
newmy $mojo = Mojo->new;
Returns a new Mojo object.
build_txmy $tx = $mojo->build_tx;
Returns a new Mojo::Transaction object; Meant to be overloaded in subclasses.
handler$tx = $mojo->handler($tx);
Returns and takes a Mojo::Transaction object as first argument. Meant to be overloaded in subclasses.
sub handler {
my ($self, $tx) = @_;
# Hello world!
$tx->res->code(200);
$tx->res->headers->content_type('text/plain');
$tx->res->body('Congratulations, your Mojo is working!');
return $tx;
}

http://mojolicious.org
#mojo on irc.perl.org
http://lists.kraih.com/listinfo/mojo

http://github.com/kraih/mojo/commits/master


Sebastian Riedel, sri@cpan.org.

In alphabetical order:
Andreas Koenig
Andy Grundman
Aristotle Pagaltzis
Ask Bjoern Hansen
Audrey Tang
Breno G. de Oliveira
Ch Lamprecht
Christian Hansen
Gisle Aas
Graham Barr
Jesse Vincent
Lars Balker Rasmussen
Leon Brocard
Marcus Ramberg
Mark Stosberg
Pedro Melo
Robert Hicks
Shu Cho
Uwe Voelker
vti
And thanks to everyone else i might have forgotten. (Please send me a mail)

Copyright (C) 2008-2009, Sebastian Riedel.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.