Permalink
Browse files

Merge pull request #231 from GunioRobot/clean

Hi! I cleaned up your code for you!
  • Loading branch information...
2 parents 1a324ce + 4b0ad62 commit 9a4cee95bd834b8eeddec60a42f0bff683df31b6 @kraih kraih committed Oct 30, 2011
View
@@ -26,7 +26,7 @@
-ci=2 # Continuation indent is 2 cols
# We use version control, so just rewrite the file
--b
+-b
# For the up-tight folk :)
-pt=2 # High parenthesis tightness
View
@@ -95,7 +95,7 @@ which stringifies to the actual path.
my $log = $app->log;
$app = $app->log(Mojo::Log->new);
-
+
The logging layer of your application, defaults to a L<Mojo::Log> object.
$app->log->debug('It works!');
@@ -852,15 +852,15 @@ Disable auto rendering, especially for long polling this can be quite useful.
$c->render_not_found;
$c->render_not_found($resource);
-
+
Render the not found template C<not_found.$mode.$format.*> or
C<not_found.$format.*> and set the response status code to C<404>.
=head2 C<render_partial>
my $output = $c->render_partial('menubar');
my $output = $c->render_partial('menubar', format => 'txt');
-
+
Same as C<render> but returns the rendered result.
=head2 C<render_static>
@@ -973,7 +973,7 @@ be set with L<Mojolicious/"defaults">.
=head2 C<ua>
my $ua = $c->ua;
-
+
Alias for C<$c-E<gt>app-E<gt>ua>.
Usually refers to a L<Mojo::UserAgent> object.
@@ -702,7 +702,7 @@ script, so don't forget to use the L<utf8> pragma if necessary.
@@ heart.html.ep
I ♥ Mojolicious!
-
+
=head2 Base64 encoded DATA files
@@ -30,7 +30,7 @@ the following new ones.
=head2 C<register>
$plugin->register;
-
+
This method will be called by L<Mojolicious::Plugins> at startup time,
your plugin should use this to hook into the application.
For instace by adding handlers and helpers to the renderer or using the
@@ -350,7 +350,7 @@ Directory to look for layouts in, defaults to C<layouts>.
my $root = $renderer->root;
$renderer = $renderer->root('/foo/bar/templates');
-
+
Directory to look for templates in.
=head1 METHODS
@@ -367,7 +367,7 @@ Construct a new renderer.
=head2 C<add_handler>
$renderer = $renderer->add_handler(epl => sub {...});
-
+
Add a new handler to the renderer.
See L<Mojolicious::Plugin::EPRenderer> for a sample renderer.
@@ -407,7 +407,7 @@ See L<Mojolicious::Controller/"render"> for a more user friendly interface.
format => 'html',
handler => 'epl'
});
-
+
Builds a template name based on an options hash with C<template>, C<format>
and C<handler>.

0 comments on commit 9a4cee9

Please sign in to comment.