Skip to content

Instantly share code, notes, and snippets.

@kraih
Created February 14, 2011 04:39
Show Gist options
  • Save kraih/825488 to your computer and use it in GitHub Desktop.
Save kraih/825488 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use Mojolicious::Lite;
get '/welcome' => sub {
my $self = shift;
$self->render(text => 'Hi there!');
};
app->start;
__DATA__
@@ not_found.production.html.ep
<!doctype html><html>
<head><title>Dude!</title></head>
<body>Where is my page?</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment