Skip to content

Commit

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

2.92 2012-04-27
- Improved documentation.

2.91 2012-04-26
- Added cookies method to Mojo::Message.
- Updated HTML5 entities in Mojo::Util.
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/Util.pm
Expand Up @@ -141,7 +141,7 @@ sub html_escape {
sub html_unescape {
my $string = shift;
$string
=~ s/&(?:\#((?:\d{1,7}|x[0-9A-Fa-f]{1,6}));|([\w\.]+;?))/_decode($1,$2)/ge;
=~ s/&(?:\#((?:\d{1,7}|x[0-9A-Fa-f]{1,6}));|(\w+;?))/_decode($1, $2)/ge;
return $string;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -33,7 +33,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Leaf Fluttering In Wind';
our $VERSION = '2.91';
our $VERSION = '2.92';

# "These old doomsday devices are dangerously unstable.
# I'll rest easier not knowing where they are."
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Renderer.pm
Expand Up @@ -287,7 +287,7 @@ Renderer cache, defaults to a L<Mojo::Cache> object.
my $classes = $renderer->classes;
$renderer = $renderer->classes(['main']);
Classes to use for finding templates in C<DATA> section, first one has the
Classes to use for finding templates in C<DATA> sections, first one has the
highest precedence, defaults to C<main>.
# Add another class with templates in DATA section
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/Static.pm
Expand Up @@ -191,8 +191,8 @@ L<Mojolicious::Static> implements the following attributes.
my $classes = $static->classes;
$static = $static->classes(['main']);
Classes to use for finding files in C<DATA> section, first one has the highest
precedence, defaults to C<main>.
Classes to use for finding files in C<DATA> sections, first one has the
highest precedence, defaults to C<main>.
# Add another class with static files in DATA section
push @{$static->classes}, 'Mojolicious::Plugin::Fun';
Expand All @@ -216,7 +216,7 @@ the following ones.
my $success = $static->dispatch(Mojolicious::Controller->new);
Dispatch a L<Mojolicious::Controller> object.
Serve static file for L<Mojolicious::Controller> object.
=head2 C<serve>
Expand Down

0 comments on commit b245acb

Please sign in to comment.