<div id="reply-content">
        <br>
    </div>
    <div id="06C771F0FEEB4BF4ABE35687752CB62E"></div>
     
    <p style="color: #A0A0A8;">Le vendredi 4 janvier 2013 à 14:57, Alexis Sukrieh a écrit :</p>
    <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
        <div id="quoted-message-content"><div><div dir="ltr"><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div>
On 4 Jan 2013 13:21, "Damien Krotkine" &lt;<a href="mailto:dkrotkine@gmail.com" target="_blank">dkrotkine@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><br></div><div>And that brings up the fact that we should use a serious tool to handle dancer 'use' options. Can we try an enhanced sub::exporter or similar?</div><p style="color:rgb(160,160,168)">
</p></blockquote></div></div></div></blockquote><div>I doubt this is an exporter issue actually, but rather an object-encapsulation problem, so I'm not sure opening a new work area about Sub::Exporter is what we want. On top of introducing another core-dep, we're going to diverge, I fear. I may be wrong, but that's my feeling.&nbsp;</div></div></div></div></blockquote><div><br></div><div>Sorry I answered the other message before seeing this one.&nbsp;</div><div><br></div><div>Yes I agree it's a different topic. I was just thinking out loud. What mean is that &nbsp;if we need to handle :</div><div><br></div><div>use Dancer;</div><div>use Dancer qw(:moose);</div><div>use Dancer qw( :syntax :test);</div><div>Use Dancer dsl =&gt; 'My::DSL', scope =&gt; 'Parent', ':moose'</div><div><br></div><div>then maybe we can rely on existing mechanism. Maybe not a new dependency, but at least get inspired and maybe steal the syntax of existing stuff</div><div><br></div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"><div id="quoted-message-content"><div><div dir="ltr">
<div><br></div><div>The exporting of symbols done by the DSL role works pretty well, not sure we want to spend energy on changing something that works.<br></div></div></div></div></blockquote><div><br></div><div>Yes definitely, see my other email&nbsp;</div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"><div id="quoted-message-content"><div><div dir="ltr"><div></div><div><br></div><div style="">The main deal here is to be able to tell Dancer to compose a set of packages into one Dancer::Core::App object, for the caller. Or if we do it like you say, from a sub-app to a parent app. And after thinking about it, I don't think both ways are exclusive.</div></div></div></div></blockquote><div><br></div><div>That's true actually, we could do both. Now the hard thing is to find the right syntax :)&nbsp;</div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"><div id="quoted-message-content"><div><div dir="ltr">
<div style=""><br></div><div style="">Once we have that, we should be in a very good position for implementing the option David is speaking about:&nbsp;</div><div style=""><br></div><div style="">&nbsp; scope: single # the D1 way</div><div style="">
<br></div><div style="">Or</div><div style=""><br></div><div style="">&nbsp; scope: per_app # the current D2 way</div></div></div></div></blockquote><div><br></div><div>maybe per_package ? &nbsp;</div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"><div id="quoted-message-content"><div><div dir="ltr"><div><br></div><div style="">Of course, there may be better names but you get the idea. I think we have something there, combining all the comments in this thread.</div></div></div></div></blockquote><div><br></div><div>Fully agree. Productive thread :)&nbsp;</div><div><br></div><div>&nbsp;</div><blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;"><div id="quoted-message-content"><div><div dir="ltr">
<div style=""><br></div><div><br></div></div>
<div>_______________________________________________</div><div>dancer-users mailing list</div><div>dancer-users@dancer.pm</div><div>http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</div></div></div>
         
         
         
         
    </blockquote>
     
    <div>
        <br>
    </div>