Skip to content

Commit

Permalink
no need to use all render options in variant example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 12, 2014
1 parent a385e46 commit 9e42457
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -204,9 +204,9 @@ To make your application look great on many different devices you can also
select a C<variant> for your templates, it only applies when a template with
the correct name actually exists and falls back to the generic one otherwise.

# foo.html+phone.ep
# foo.html.ep
$self->render('foo', format => 'html', variant => 'phone', handler => 'ep');
# foo/bar/baz.html+phone.ep
# foo/bar/baz.html.ep
$self->render('foo/bar/baz', variant => 'phone');

=head2 Rendering inline templates

Expand Down

0 comments on commit 9e42457

Please sign in to comment.