Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mention how to use layouts with partial templates
  • Loading branch information
kraih committed Feb 4, 2014
1 parent 4119074 commit 68f0bc9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -517,6 +517,11 @@ L<Mojolicious/"defaults">.

1;

Layouts can also be used with C<partial> templates, but the C<layout> value
needs to be passed as a render argument.

my $html = $self->render('reminder', layout => 'mail', partial => 1);

=head2 Including partial templates

Like most helpers L<Mojolicious::Plugin::DefaultHelpers/"include"> is just a
Expand Down

0 comments on commit 68f0bc9

Please sign in to comment.