Permalink
Browse files

added build_controller example

  • Loading branch information...
1 parent 1f94c39 commit 236a5f317b62f052cfa2a14657a2135ed9556934 @kraih committed Mar 8, 2014
Showing with 4 additions and 1 deletion.
  1. +1 −1 Changes
  2. +3 −0 lib/Mojolicious.pm
View
@@ -1,5 +1,5 @@
-4.88 2014-03-08
+4.88 2014-03-09
- Added build_controller method to Mojolicious.
- Improved Mojo::Server::Daemon to handle setuid/setgid errors more
gracefully.
View
@@ -546,6 +546,9 @@ new ones.
Build default controller object with L</"defaults">, which is usually a
L<Mojolicious::Controller> object.
+ # Render template from application
+ my $foo = $app->build_controller->render(template => 'foo', partial => 1);
+
=head2 build_tx
my $tx = $app->build_tx;

0 comments on commit 236a5f3

Please sign in to comment.