[dancer-users] Route dispatch

Celogeek me at celogeek.com
Fri Dec 28 15:57:59 GMT 2012


Can I dispatch my root thought multiple module ? 

I have in App::Main : 

hook before => sub { 
var xxx => "test"; 
} 

and in App::Root; 

get "/" => sub { 
return vars->{xxx} 
} 

But vars seems empty. 

In my bin/app.psgi I have : 

use Dancer; 
use App::Main; 
use App::Root; 

start; 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20121228/760b8789/attachment.htm>


More information about the dancer-users mailing list