[Dancer-users] Fwd: Structuring Dancer Application
Forgoselo Fontardion
fontardion at gmail.com
Tue Mar 29 18:36:04 CEST 2011
Hello,
You have resolved my problem, I like the solution sugested by Naveed,
because it allows to have the routes in one file and separate the diferent
modules.
Best regards,
Fontardion
2011/3/27 Naveed Massjouni <naveedm9 at gmail.com>
> ---------- Forwarded message ----------
> From: Naveed Massjouni <naveedm9 at gmail.com>
> Date: Sat, Mar 26, 2011 at 3:47 AM
> Subject: Re: [Dancer-users] Structuring Dancer Application
> To: Ricardo Paz <ricardo.paz.fernandez at gmail.com>
>
>
> You are welcome. But you should reply to the list so that people who
> are trying to help you know that you have solved your problem.
> -Naveed
>
> On Sat, Mar 26, 2011 at 3:17 AM, Ricardo Paz
> <ricardo.paz.fernandez at gmail.com> wrote:
> > Hello Naveed,
> >
> > Yes, that's exacly what i was looking for.
> >
> > Thank you
> >
> > 2011/3/26 Naveed Massjouni <naveedm9 at gmail.com>
> >>
> >> On Fri, Mar 25, 2011 at 8:01 PM, Forgoselo Fontardion
> >> <fontardion at gmail.com> wrote:
> >> > Hello,
> >> >
> >> > Thank you for answering my question.
> >> >
> >> > Maybe I didn't explain the question correctly.I want to be able to
> split
> >> > the
> >> > logic in diferent modules. In your example:
> >> > "/" calls Web::Root, how do you call Web::Root from web.pm?
> >> > "/forums" calls Web::Forum, how do you call Web::Forum from
> web.pm?
> >>
> >> === web.pm ===
> >> use Dancer ':syntax';
> >> use Web::Root;
> >> get '/' => sub { Web::Root::foo() };
> >> get '/forums' => sub { Web::Forum::bar() };
> >>
> >> Is that what you want?
> >> -Naveed
> >>
> >> >
> >> >
> >> > Best regards,
> >> > Fontardion
> >> >
> >> > 2011/3/25 sawyer x <xsawyerx at gmail.com>
> >> >>
> >> >> Hey guys,
> >> >>
> >> >> On Thu, Mar 24, 2011 at 10:49 PM, Brian E. Lozier <
> brian at massassi.com>
> >> >> wrote:
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> http://search.cpan.org/~sukria/Dancer-1.2005/lib/Dancer/Introduction.pod#PREFIX
> >> >>
> >> >> Better use a more up-to-date version:
> >> >> http://search.cpan.org/perldoc?Dancer::Introduction
> >> >>
> >> >> S.
> >> >
> >> >
> >> > _______________________________________________
> >> > Dancer-users mailing list
> >> > Dancer-users at perldancer.org
> >> > http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
> >> >
> >> >
> >
> >
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110329/e5e87ef1/attachment.htm>
More information about the Dancer-users
mailing list