Skip to content

Commit

Permalink
clear up renderer example some more
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 23, 2012
1 parent 0eb9694 commit b4c0ea8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -884,13 +884,13 @@ do is add a new C<handler>.
mine => sub {
my ($r, $c, $output, $options) = @_;

# One time use inline template
# Check for one time use inline template
my $inline = $options->{inline};

# Try to find appropriate template in DATA section
# Check for appropriate template in DATA section
my $data = $r->get_data_template($options);

# Generate absolute template path
# Check for absolute template path
my $path = $r->template_path($options);

# This part is up to you and your template system :)
Expand All @@ -902,7 +902,7 @@ do is add a new C<handler>.
# Pass the rendered result back to the renderer
$$output = 'The rendered result';

# Return true if rendering succeeded and false if it didn't
# Return true if something has been rendered and false otherwise
return 1;
}
);
Expand Down

0 comments on commit b4c0ea8

Please sign in to comment.