Skip to content

Commit

Permalink
better rendering example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 3, 2013
1 parent 1f5d479 commit 71738ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -753,7 +753,7 @@ validate it with L<Mojolicious::Validator::Validation/"csrf_protect">.

use Mojolicious::Lite;

get '/' => sub { shift->render('target') };
get '/' => {template => 'target'};

post '/' => sub {
my $self = shift;
Expand Down

0 comments on commit 71738ba

Please sign in to comment.