---------- Forwarded message ---------- From: Naveed Massjouni <naveedm9@gmail.com> Date: Sat, Mar 26, 2011 at 3:47 AM Subject: Re: [Dancer-users] Structuring Dancer Application To: Ricardo Paz <ricardo.paz.fernandez@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@gmail.com> wrote:
Hello Naveed,
Yes, that's exacly what i was looking for.
Thank you
2011/3/26 Naveed Massjouni <naveedm9@gmail.com>
On Fri, Mar 25, 2011 at 8:01 PM, Forgoselo Fontardion <fontardion@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@gmail.com>
Hey guys,
On Thu, Mar 24, 2011 at 10:49 PM, Brian E. Lozier <brian@massassi.com> wrote:
http://search.cpan.org/~sukria/Dancer-1.2005/lib/Dancer/Introduction.pod#PRE...
Better use a more up-to-date version: http://search.cpan.org/perldoc?Dancer::Introduction
S.
_______________________________________________ Dancer-users mailing list Dancer-users@perldancer.org http://www.backup-manager.org/cgi-bin/listinfo/dancer-users