[dancer-users] Route dispatch

Celogeek me at celogeek.com
Fri Dec 28 16:26:06 GMT 2012



----- Mail original -----

De: "Celogeek" <me at celogeek.com> 
À: "Dancer Mailing List" <dancer-users at perldancer.org> 
Envoyé: Vendredi 28 Décembre 2012 16:57:59 
Objet: [dancer-users] Route dispatch 
Oh, they is a "context" thing. So multiple module can't share a context ? 


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; 



_______________________________________________ 
dancer-users mailing list 
dancer-users at dancer.pm 
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users 

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


More information about the dancer-users mailing list