Skip to content

Commit

Permalink
when calling pass() one must also return from the current route
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Jan 24, 2011
1 parent 31c7293 commit cb59bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PEG.pm
Expand Up @@ -116,7 +116,7 @@ get qr{^ / (\w+) $ }x => sub {
my ($page) = splat;

# we have the page or we pass up on it
grep { $page eq $_ } @pages or pass;
grep { $page eq $_ } @pages or return pass;

# render it
template $page => $content{$page};
Expand Down

0 comments on commit cb59bba

Please sign in to comment.