/[SysIface]/lib/SysIface/Example.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/SysIface/Example.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1 by dpavlin, Tue Jun 16 19:33:55 2009 UTC revision 4 by dpavlin, Tue Jun 16 19:47:21 2009 UTC
# Line 5  use warnings; Line 5  use warnings;
5    
6  use base 'Mojolicious::Controller';  use base 'Mojolicious::Controller';
7    
8    use File::Slurp;
9    
10  # This action will render a template  # This action will render a template
11  sub welcome {  sub welcome {
12      my $self = shift;      my $self = shift;
# Line 12  sub welcome { Line 14  sub welcome {
14      # Render template "example/welcome.html.epl" with message and layout      # Render template "example/welcome.html.epl" with message and layout
15      $self->render(      $self->render(
16          layout  => 'default',          layout  => 'default',
17          message => 'Welcome to the Mojolicious Web Framework!'          message => 'Welcome to the Mojolicious Web Framework!',
18                    commands => [ read_file('sh/commands.sh') ],
19      );      );
20  }  }
21    

Legend:
Removed from v.1  
changed lines
  Added in v.4

  ViewVC Help
Powered by ViewVC 1.1.26