Skip to content

Commit

Permalink
removed growing section from lite tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 29, 2012
1 parent a3bb5e1 commit 9f7a012
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -791,40 +791,6 @@ For more control the L<Mojolicious> instance can be accessed directly.
$self->render(text => 'Hello Mojo!');
});
=head2 Growing
In case a lite app needs to grow, lite and real L<Mojolicious> applications
can be easily mixed to make the transition process very smooth.
package MyApp::Foo;
use Mojo::Base 'Mojolicious::Controller';
sub index {
my $self = shift;
$self->render(text => 'It works.');
}
package main;
use Mojolicious::Lite;
get '/bar' => sub {
my $self = shift;
$self->render(text => 'This too.');
};
app->routes->namespace('MyApp');
app->routes->route('/foo/:action')->via('GET')->to('foo#index');
app->start;
There is also a helper command to generate a full L<Mojolicious> example that
will let you explore the astonishing similarities between
L<Mojolicious::Lite> and L<Mojolicious> applications. Both share about 99% of
the same code, so almost everything you learned in this tutorial applies
there too. :)
$ mojo generate app
=head2 More
You can continue with L<Mojolicious::Guides> now, and don't forget to have
Expand Down

0 comments on commit 9f7a012

Please sign in to comment.