<div dir="ltr"><blockquote class="gmail_quote" 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 class=""><div class="h5"><div class="gmail_quote">
On 4 Jan 2013 13:21, "Damien Krotkine" <<a href="mailto:dkrotkine@gmail.com" target="_blank">dkrotkine@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" 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><div></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. </div>
<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><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 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: </div><div style><br></div><div style> scope: single # the D1 way</div><div style>
<br></div><div style>Or</div><div style><br></div><div style> scope: per_app # the current D2 way</div><div class="gmail_extra"><br></div><div class="gmail_extra" 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 class="gmail_extra" style><br></div><div class="gmail_extra"><br></div></div>