Skip to content

Commit

Permalink
improved rendering guide a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 26, 2012
1 parent bcdc0ad commit 228c90b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -341,7 +341,7 @@ manually.

# 404
return $self->render_not_found
unless looks_like_number($dividend) && looks_like_number($divisor);
unless looks_like_number $dividend && looks_like_number $divisor;

# 500
return $self->render_exception('Division by zero!') if $divisor == 0;
Expand Down Expand Up @@ -830,7 +830,6 @@ script, so don't forget to use the L<utf8> pragma if necessary.
@@ heart.html.ep
I ♥ Mojolicious!


=head2 Base64 encoded DATA files

Base64 encoded static files such as images can be easily stored in the C<DATA>
Expand All @@ -851,8 +850,8 @@ C<templates> and C<public> directories.

=head2 Customizing the template syntax

You can easily change the whole template syntax by loading the C<ep_renderer>
plugin with a custom configuration.
You can easily change the whole template syntax by loading
L<Mojolicious::Plugin::EPRenderer> with a custom configuration.

use Mojolicious::Lite;

Expand Down

0 comments on commit 228c90b

Please sign in to comment.