[Catalyst] issue with Path method not catching '.html' portion

Edric ehankamo at yahoo.com
Sat Mar 18 06:35:02 CET 2006


my apologies, that was actually a very bad example i wrote out too quickly... here's the acutal code copy and pasted
  -----------------------------------------------------------
  sub default : Private {
      my ( $self, $c ) = @_;
  }
  sub begin : Private {
      my ( $self, $c ) = @_;
  }
  
  sub test : Path('test.html') {
          my ( $self, $c ) = @_;
          $c->stash->{template} = 'test.html';
         $c->stash->{template} = 
  }
  
  sub demo : Path('demo.html') {
          my ( $self, $c ) = @_;
          $c->stash->{template} = 'demo.html';
  }
  
  sub end : Private {
    my ($self, $c) = @_;
    if ($c->res->redirect) {
      return;
    } else {
      $c->forward('Catalyst::View::TT');
    }
    die "forced debug" if $c->req->params->{dump_info};
  }
  -----------------------------------------------------------
  
  so the issue is still the same as originally mentioned... test.html is  not recognized but 'test' is... the only workaround is to specify root  via __PACKAGE__->config
  
  i've tried reading ins and outs of the manuals and the explanations of  path on the tutorials. it's just not acting the way i expect it.
  
  any idea why adding .html is not recognized? the actual file name of 'test.html' is 'test.html' 
  
  'demo' has the same problem as well
  
  thanks 
  
Sebastian Riedel <sri at oook.de> wrote:  
18.03.2006 03:27 Edric:

> i have this method as shown here:
>
> sub index : Path('test.html') {
> }

"index" is a built in private action please read  
Catalyst::Manual::Intro.


--
sebastian


_______________________________________________
Catalyst mailing list
Catalyst at lists.rawmode.org
http://lists.rawmode.org/mailman/listinfo/catalyst


		
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060317/04cc5523/attachment.htm 


More information about the Catalyst mailing list