Skip to content

Commit

Permalink
mention what template blocks are most commonly used for
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 9, 2014
1 parent 10b35cd commit 2ae98d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.69 2014-12-09
5.69 2014-12-10
- Deprecated Mojo::DOM::siblings.
- Added following, following_siblings, preceding and preceding_siblings
methods to Mojo::DOM.
Expand Down
3 changes: 3 additions & 0 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -642,6 +642,9 @@ A naive translation to Perl code could look like this.
}
return $output;

While template blocks cannot be shared between templates, they are most
commonly used to pass parts of a template to helpers.

=head2 Adding helpers

You should always try to keep your actions small and reuse as much code as
Expand Down

0 comments on commit 2ae98d3

Please sign in to comment.