=================================================================== RCS file: /cvs/todotxt/Text-Todo/bin/dudelicious.pl,v retrieving revision 1.7 retrieving revision 1.9 diff -u -r1.7 -r1.9 --- todotxt/Text-Todo/bin/dudelicious.pl 2010/04/30 07:23:32 1.7 +++ todotxt/Text-Todo/bin/dudelicious.pl 2010/04/30 18:30:57 1.9 @@ -1,4 +1,4 @@ -#!/usr/bin/env perl +#!/usr/bin/perl package Dudelicious; @@ -8,7 +8,7 @@ BEGIN { use FindBin; use lib "$FindBin::Bin/../lib"; - use lib "$FindBin::Bin/mojo/lib"; + use lib "$FindBin::Bin/../mojo/lib"; } use Carp qw/ carp croak /; @@ -36,6 +36,8 @@ $self->render( files => \@files, layout => 'todotxt' ); } => 'index'; +get '/todotxt' => 'todotxt'; + get '/l/:file' => sub { my $self = shift; my $file = $self->stash('file') . '.txt'; @@ -125,10 +127,24 @@ @@ layouts/todotxt.html.ep -