Skip to content

Commit

Permalink
fixed a few cookbook examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 21, 2012
1 parent 501d606 commit dba1e35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

3.43 2012-09-21
3.43 2012-09-22
- Updated jQuery to version 1.8.2.
- Improved Hypnotoad to clean up old PID files containing a 0.
(coffeemonster)
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -244,7 +244,7 @@ with this little mock server you can just embed them.
my $app = $server->load_app('./myapp.pl');

# Access fully initialized application
say $app->static->root;
say for @{$app->static->paths};
say $app->config->{secret_identity};
say $app->dumper({just => 'a helper test'});

Expand Down Expand Up @@ -1078,11 +1078,11 @@ application to test something? Thanks to the C<eval> command you can do just
that, the application object itself can be accessed via C<app>.

$ mojo generate lite_app
$ ./myapp.pl eval 'say app->static->root'
$ ./myapp.pl eval 'say for @{app->static->paths}'

The C<verbose> option will automatically print the return value to C<STDOUT>.

$ ./myapp.pl eval -v 'app->static->root'
$ ./myapp.pl eval -v 'app->static->paths->[0]'

=head2 Making your application installable

Expand Down

0 comments on commit dba1e35

Please sign in to comment.