Skip to content
Browse files

added build_controller example to cookbook

  • Loading branch information...
1 parent 236a5f3 commit 988bed355ca6640e6e662b332e38a1fd530ceb12 @kraih committed Mar 8, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Mojolicious/Guides/Cookbook.pod
1 lib/Mojolicious/Guides/Cookbook.pod
@@ -314,6 +314,7 @@ with this little L<Mojo::Server> based mock server you can just embed them.
say for @{$app->static->paths};
say $app->config->{secret_identity};
say $app->dumper({just => 'a helper test'});
+ say $app->build_controller->render(template => 'foo', partial => 1);
The plugin L<Mojolicious::Plugin::Mount> uses this functionality to allow you
to combine multiple applications into one and deploy them together.

0 comments on commit 988bed3

Please sign in to comment.
Something went wrong with that request. Please try again.