RE: [Catalyst] Dispatching based on path and host/domain

2008-04-22 Thread Curtis Fletcher
-Original Message- From: Matt Pitts [mailto:[EMAIL PROTECTED] Sent: 22 April 2008 03:06 To: The elegant MVC web framework Subject: RE: [Catalyst] Dispatching based on path and host/domain You've probably heard this before on the list, but... Ideally, you shouldn't have

RE: [Catalyst] Dispatching based on path and host/domain

2008-04-23 Thread Curtis Fletcher
Write an Action Class. You can put whatever you want in the match() method. In your case, return 0 if grep { $c-req-host =~ /$_/ } @{$self-attributes-{Domain}||[]} I gave this a go (in principle it looks ideal), but the documentation on Catalyst::Action is pretty sparse and only talks