Changeset 245
- Timestamp:
- 06/16/07 00:12:09 (3 years ago)
- Location:
- veekun/trunk
- Files:
-
- 1 added
- 2 modified
-
lib/Vee/Controller/Root.pm (modified) (1 diff)
-
templates/404.tt (added)
-
templates/fatal.tt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/lib/Vee/Controller/Root.pm
r135 r245 64 64 sub default : Private { 65 65 my ($self, $c) = @_; 66 67 $c->stash->{template} = join('/', @{ $c->req->args }) . '.tt'; 66 67 my @path_parts = @{ $c->req->args }; 68 69 if (not -e $c->path_to('static', @path_parts) . '.tt') { 70 $c->stash->{template} = '404.tt'; 71 return; 72 } 73 68 74 $c->stash->{additional_template_paths} = [ $c->path_to('static') ]; 69 70 if ($c->req->args->[0] eq 'dex') { 75 $c->stash->{template} = join('/', @path_parts) . '.tt'; 76 77 if ($path_parts[0] eq 'dex') { 71 78 $c->stash( %Vee::Dex::all ); 72 79 } -
veekun/trunk/templates/fatal.tt
r1 r245 1 1 [% META title = 'Flagrant Error' %] 2 2 3 < p>Whoops!</p>3 <h1>Whoops!</h1> 4 4 5 5 <p>Something terrible, horrible, no-good, and very bad happened. Probably my fault, not yours.</p>
