Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
small documentation tweaks
  • Loading branch information
kraih committed Feb 13, 2012
1 parent 2d07fd2 commit 01627a2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
This file documents the revision history for Perl extension Mojolicious.

2.50 2012-02-14 00:00:00
- Improved documentation.

2.49 2012-02-13 00:00:00
- Deprecated Mojolicious::Renderer->root in favor of
Mojolicious::Renderer->paths. (memowe, sri)
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious.pm
Expand Up @@ -32,7 +32,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Leaf Fluttering In Wind';
our $VERSION = '2.49';
our $VERSION = '2.50';

# "These old doomsday devices are dangerously unstable.
# I'll rest easier not knowing where they are."
Expand Down Expand Up @@ -359,7 +359,7 @@ session data.
my $static = $app->static;
$app = $app->static(Mojolicious::Static->new);
For serving static assets from your C<public> directory, defaults to a
For serving static files from your C<public> directories, defaults to a
L<Mojolicious::Static> object.
# Add another "public" directory
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/cpanify.pm
Expand Up @@ -52,7 +52,7 @@ sub run {
elsif ($code eq '409') { $message = 'File already exists on CPAN.' }
die qq/Problem uploading file "$file". ($message)\n/;
}
say 'Upload sucessful!';
say 'Upload successful!';
}

1;
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Controller.pm
Expand Up @@ -837,8 +837,8 @@ Same as C<render> but returns the rendered result.
my $success = $c->render_static('images/logo.png');
my $success = $c->render_static('../lib/MyApp.pm');
Render a static file using L<Mojolicious::Static> relative to the
C<public> directory of your application.
Render a static file using L<Mojolicious::Static>, relative to the
C<public> directories of your application.
=head2 C<render_text>
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -32,8 +32,8 @@ C<handler> to C<ep>.
{name => 'foo', format => 'txt'} -> 'foo.txt.ep'
{name => 'foo', handler => 'epl'} -> 'foo.html.epl'

All templates should be in the C<templates> directory of the application
or the C<DATA> section of the class C<main>.
All templates should be in the C<templates> directories of the application or
the C<DATA> section of the class C<main>.

__DATA__

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Static.pm
Expand Up @@ -216,7 +216,7 @@ Dispatch a L<Mojolicious::Controller> object.
my $success = $static->serve($c, 'foo/bar.html');
Serve a specific file.
Serve a specific file, relative to C<paths>.
=head1 SEE ALSO
Expand Down

0 comments on commit 01627a2

Please sign in to comment.