include a full app example

This commit is contained in:
Graham Ollis
2013-08-08 09:03:48 -04:00
parent 6386e0620e
commit e541ac92b7
13 changed files with 150 additions and 4 deletions
+13
View File
@@ -0,0 +1,13 @@
package MyApp::Example;
use Mojo::Base 'Mojolicious::Controller';
# This action will render a template
sub welcome {
my $self = shift;
# Render template "example/welcome.html.ep" with message
$self->render(
message => 'Welcome to the Mojolicious real-time web framework!');
}
1;