1Mojo::HelloWorld(3) User Contributed Perl Documentation Mojo::HelloWorld(3)
2
3
4
6 Mojo::HelloWorld - Hello World!
7
9 use Mojo::Transaction::HTTP;
10 use Mojo::HelloWorld;
11
12 my $hello = Mojo::HelloWorld->new;
13 my $tx = $hello->handler(Mojo::Transaction::HTTP->new);
14
16 Mojo::HelloWorld is the default Mojo application, used mostly for
17 testing.
18
20 Mojo::HelloWorld inherits all methods from Mojo and implements the
21 following new ones.
22
23 "new"
24 my $hello = Mojo::HelloWorld->new;
25
26 Construct a new Mojo::HelloWorld application.
27
28 "handler"
29 $tx = $hello->handler($tx);
30
31 Handle request.
32
34 Mojolicious, Mojolicious::Guides, <http://mojolicious.org>.
35
36
37
38perl v5.12.3 2010-08-14 Mojo::HelloWorld(3)