<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Can I dispatch my root thought multiple module ?<br></div><div><br></div><div>I have in App::Main : <br></div><div><br></div><div>hook before => sub {<br></div><div>var xxx => "test";<br></div><div>}<br></div><div><br></div><div>and in App::Root;<br></div><div><br></div><div>get "/" => sub {<br></div><div> return vars->{xxx}<br></div><div>}<br></div><div><br></div><div>But vars seems empty.<br></div><div><br></div><div>In my bin/app.psgi I have :<br></div><div><br></div><div>use Dancer;<br></div><div>use App::Main;<br></div><div>use App::Root;<br></div><div><br></div><div>start;<br></div><div><br></div><div><br></div></div></body></html>