[dancer-users] Route dispatch

Alex C calyx238 at gmail.com
Fri Dec 28 17:18:12 GMT 2012


Yuo are missing the semicolons after your sub declarations. Try it agian ;)

On 28 December 2012 15:57, Celogeek <me at celogeek.com> wrote:

> 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/b83d4568/attachment.htm>


More information about the dancer-users mailing list