Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more documentation tweaks
  • Loading branch information
kraih committed Mar 1, 2013
1 parent 0c63d4e commit 97adf41
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -217,8 +217,9 @@ renderer which get directly encoded to JSON.

=head2 Partial rendering

Sometimes you might want to access the rendered result, for example to
generate emails, this can be done using the C<partial> stash value.
Sometimes you might want to use the rendered result directly instead of
generating a response, for example to send emails, this can be done using the
C<partial> stash value.

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

Expand Down Expand Up @@ -328,10 +329,10 @@ used or an empty C<204> response rendered automatically.

By now you've probably already encountered the built-in 404 (Not Found) and
500 (Server Error) pages, that get rendered automatically when you make a
mistake. Especially during development they can be a great help, the methods
mistake. Especially during development they can be a great help, you can
render them manually with the methods
L<Mojolicious::Controller/"render_exception"> and
L<Mojolicious::Controller/"render_not_found"> can be used to render them
manually.
L<Mojolicious::Controller/"render_not_found">.

use Mojolicious::Lite;
use Scalar::Util 'looks_like_number';
Expand Down

0 comments on commit 97adf41

Please sign in to comment.