Well in Catalyst an action is usually mapped to a controller method,
so I really don't understand your request. Maybe this example will
help:


sub edit : Local {
  my ( $self, $c ) = @_;

  my $uri = URI->new($c->req->base);

# get whatever you want from the URI
 my $auth = $uri->authority;

 #do whatever you want with that info...

See perldoc URI

Best,
Alejandro Imass


On Tue, Aug 11, 2009 at 3:09 PM, Matt Whipple<[email protected]> wrote:
> Is there a presently existing mechanism which flexibly allows for template
> selection according to the request URI?  For instance a request to
> www.myapp.com/somepage would set something like stash(template =>
> 'somepage.tt') if the file exists and continue to be processed by the
> appropriate or default action.
>
> I wrote something which does this which I'm about to spend some time
> cleaning up and optimizing but don't want to be reinventing any wheels
> (especially likely smoother ones).
>
> _______________________________________________
> List: [email protected]
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to