Parent Directory | Revision Log
mojolicious generate app SysIface
1 | dpavlin | 1 | package SysIface::Example; |
2 | |||
3 | use strict; | ||
4 | use warnings; | ||
5 | |||
6 | use base 'Mojolicious::Controller'; | ||
7 | |||
8 | # This action will render a template | ||
9 | sub welcome { | ||
10 | my $self = shift; | ||
11 | |||
12 | # Render template "example/welcome.html.epl" with message and layout | ||
13 | $self->render( | ||
14 | layout => 'default', | ||
15 | message => 'Welcome to the Mojolicious Web Framework!' | ||
16 | ); | ||
17 | } | ||
18 | |||
19 | 1; |
ViewVC Help | |
Powered by ViewVC 1.1.26 |