spacing
This commit is contained in:
@@ -43,11 +43,9 @@ Here is the same example using the full [Mojolicious](http://search.cpan.org/per
|
|||||||
|
|
||||||
use Mojo::Base qw( Mojolicious );
|
use Mojo::Base qw( Mojolicious );
|
||||||
|
|
||||||
|
|
||||||
sub startup {
|
sub startup {
|
||||||
my($self) = @_;
|
my($self) = @_;
|
||||||
|
|
||||||
|
|
||||||
$self->plugin('tt_renderer' => {
|
$self->plugin('tt_renderer' => {
|
||||||
template_options => {
|
template_options => {
|
||||||
PRE_CHOMP => 1,
|
PRE_CHOMP => 1,
|
||||||
@@ -123,7 +121,6 @@ The current controller instance can be accessed as `c`.
|
|||||||
|
|
||||||
plugin 'tt_renderer';
|
plugin 'tt_renderer';
|
||||||
|
|
||||||
|
|
||||||
get '/' => sub {
|
get '/' => sub {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
$self->render('index');
|
$self->render('index');
|
||||||
@@ -131,7 +128,6 @@ The current controller instance can be accessed as `c`.
|
|||||||
|
|
||||||
app->start;
|
app->start;
|
||||||
|
|
||||||
|
|
||||||
__DATA__
|
__DATA__
|
||||||
|
|
||||||
@@ index.html.tt
|
@@ index.html.tt
|
||||||
|
|||||||
Reference in New Issue
Block a user