<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>De: </b>"Celogeek" &lt;me@celogeek.com&gt;<br><b>À: </b>"Dancer Mailing List" &lt;dancer-users@perldancer.org&gt;<br><b>Envoyé: </b>Vendredi 28 Décembre 2012 16:57:59<br><b>Objet: </b>[dancer-users] Route dispatch<br><div>Oh, they is a "context" thing. So multiple module can't share a context ?<br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><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 =&gt; sub {<br></div><div>var xxx =&gt; "test";<br></div><div>}<br></div><div><br></div><div>and in App::Root;<br></div><div><br></div><div>get "/" =&gt; sub {<br></div><div>&nbsp;return vars-&gt;{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><br>_______________________________________________<br>dancer-users mailing list<br>dancer-users@dancer.pm<br>http://lists.preshweb.co.uk/mailman/listinfo/dancer-users<br></div><div><br></div></div></body></html>