Permalink
Browse files

removed most of the code thanks to new feature 'auto_page'; w00t

  • Loading branch information...
1 parent 6d6e540 commit ab424392d91f8e11eef01fe5e30be4a211ab792f Alexis Sukrieh committed Mar 8, 2010
Showing with 0 additions and 9 deletions.
  1. +0 −9 perldancer.pm
View
@@ -2,21 +2,12 @@ package perldancer;
use Dancer;
use Template;
-my @pages = qw(quickstart documentation contribute about example download donate);
-
get '/' => sub {
template 'home';
};
-get '/:page' => sub {
- my ($page) = params->{page};
- pass and return false unless grep /$page/, @pages;
- template $page;
-};
-
get '/donate/thanks' => sub {
template 'thanks';
};
-
true;

0 comments on commit ab42439

Please sign in to comment.