Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use a directory for the example
  • Loading branch information
kraih committed Mar 7, 2016
1 parent 2b956ef commit 040dea4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -572,19 +572,19 @@ value).

=head2 Partial templates

You can break up bigger templates into smaller, more manageable chunks, which
can also be shared with other templates. Just use the helper
You can break up bigger templates into smaller, more manageable chunks. These
partial templates can also be shared with other templates. Just use the helper
L<Mojolicious::Plugin::DefaultHelpers/"include"> to include one template into
another.

use Mojolicious::Lite;

get '/' => 'foo';
get '/' => {template => 'foo/bar'};

app->start;
__DATA__

@@ foo.html.ep
@@ foo/bar.html.ep
<!DOCTYPE html>
<html>
%= include 'header', title => 'Howdy'
Expand Down

0 comments on commit 040dea4

Please sign in to comment.