Skip to content

Commit

Permalink
better explanation for content blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 7, 2016
1 parent 040dea4 commit c11b91d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -723,8 +723,10 @@ avoid conflicts.

=head2 Content blocks

Blocks and the helper L<Mojolicious::Plugin::DefaultHelpers/"content_for"> can
also be used to pass whole sections of the template to the layout.
The helper L<Mojolicious::Plugin::DefaultHelpers/"content_for"> allows you to
pass whole blocks of content from one template to another. This can be very
useful when your layout has distinct sections, such as sidebars, where content
should be inserted by the template.

use Mojolicious::Lite;

Expand Down

0 comments on commit c11b91d

Please sign in to comment.