Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.46 kb
#!/usr/bin/env perl
use Dancer;
use Dancer::Plugin::DBIC;
get '/profile/:id' => sub {
my $users_rs = foo->resultset('Users')->search({
user_id => params->{id}
});
template 'user_profile', { user => $user_rs->next };
};
dance;
# Dancer Configuration File
plugins:
DBIC:
foo:
dsn: "dbi:mysql:db_foo"
user: "root"
pass: "****"
pckg: "Foo::Bar"
options:
RaiseError: 1
PrintError: 1
Jump to Line
Something went wrong with that request. Please try again.