StuwerCal::Web
get '/blog' => sub { my $stash = { posts => $schema->resultset('Blog')->list, }; template 'blog_posts', $stash; }; get '/blog/:id' => sub { my $stash = { blog => $schema->resultset('Blog')->find(params->{'id'}), }; template 'blog', $stash; };