[Dancer-users] Plack Middleware for subdomains

Matthew Vickers mvickers at quispiam.com
Mon Feb 14 10:58:04 CET 2011


On 14/02/11 6:52 AM, Matthew Vickers wrote:
>
> Hi Harshal,
>
> I am not sure, do you think the following would work ?
>
>   package Domain1App
>
>   if(request->env->{ 'domain1' }){
>       ## domain 1 specific routes
>   }
>
>   package Domain2App
>
>    if(request->env->{ 'domain2'}) {
>       ## domain 2 specific routes
>   }
>

Just tried the above and unfortunately it does not work, seems request 
is undefined.

Maybe that someone else on the list can get this library to do what you 
need.

Matt.


More information about the Dancer-users mailing list