Skip to content

Instantly share code, notes, and snippets.

Created August 19, 2014 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f9d276754dc7cb75bfc0 to your computer and use it in GitHub Desktop.
Save anonymous/f9d276754dc7cb75bfc0 to your computer and use it in GitHub Desktop.
package Narf::Controller::Example;
use Mojo::Base 'Mojolicious::Controller';
use Data::Dumper;
sub welcome {
my $self = shift;
$self->session(foo => 123);
print Dumper $self->session;
print Dumper $self->app->session;
$self->render(msg => 'Welcome to the Mojolicious real-time web framework!');
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment