Skip to content

Commit

Permalink
make example translation consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Feb 20, 2015
1 parent 7ec5c67 commit 077e8b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -666,10 +666,9 @@ A naive translation of the template to Perl code could look like this.
$output .= xml_escape scalar $name;
$output .= '.';
return Mojo::ByteStream->new($output);
}
for (1 .. 10) {
$output .= scalar $block->('Sebastian');
}
};
$output .= scalar $block->('Sebastian');
$output .= scalar $block->('Sara');
return $output;

While template blocks cannot be shared between templates, they are most
Expand Down

0 comments on commit 077e8b7

Please sign in to comment.