Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use Mojo::DOM in Mojo::Collection example
  • Loading branch information
kraih committed Oct 5, 2013
1 parent ac0112b commit 003e48e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Changes
@@ -1,4 +1,6 @@

4.45 2013-10-05

4.44 2013-10-04
- Removed experimental status from label_for helper.
- Renamed regex check in Mojolicious::Validator to like.
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/Collection.pm
Expand Up @@ -281,8 +281,8 @@ In addition to the methods above, you can also call methods provided by all
elements in the collection directly and create a new collection from the
results, similar to C<pluck>.
push @$collection, Mojo::ByteStream->new("/home/sri/$_.txt") for 1 .. 9;
say $collection->slurp->b64_encode('');
push @$collection, Mojo::DOM->new("<div><h1>$_</h1></div>") for 1 .. 9;
say $collection->at('h1')->type('h2')->prepend_content('Test ')->root;
=head1 ELEMENTS
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -43,7 +43,7 @@ has types => sub { Mojolicious::Types->new };
has validator => sub { Mojolicious::Validator->new };

our $CODENAME = 'Top Hat';
our $VERSION = '4.44';
our $VERSION = '4.45';

sub AUTOLOAD {
my $self = shift;
Expand Down

0 comments on commit 003e48e

Please sign in to comment.