[Dancer-users] Structuring Dancer Application

Brian E. Lozier brian at massassi.com
Sat Mar 26 01:10:34 CET 2011


This is the script I use to run it:

#!/usr/local/bin/perl

use Dancer;

use Fan::Web::Root;
use Fan::Web::Forum;

dance();

This sets up an internal server at 0:5000 or 0.0.0.0:3000 or something
depending on whether I'm using perl myscript.pl or plackup
myscript.pl.  I don't ever call those modules directly and I don't
actually have a "Web.pm" -- I may be confusing the issue because I did
not start from scaffolding, I started from scratch (you can can look
at the mailing list history for my questions regarding that).

On Fri, Mar 25, 2011 at 5: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?
>
>
> 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.
>
>


More information about the Dancer-users mailing list