<div dir="ltr"><div>Thank you, Dams. It certainly helps.<br><br></div>Julio<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 6, 2013 at 5:46 PM, damien krotkine <span dir="ltr"><<a href="mailto:dkrotkine@gmail.com" target="_blank">dkrotkine@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi again,<br><br>David Golden has written Dancer::Plugin::Deferred, which is a correct implementation of the basic concept that is badly implemented in Dancer::Plugin::FlashMessage.<br>
<br>So, I spent some time trying to do rewrite D::Plugin::FlashMessage to be based on D::P::Deferred, but it's nearly impossible to do, as we cannot inherit, consume, extend or monkey patch plugins from within an other plugin.<br>
<br>So, for now, my suggestion is to use D::P::Deferred. It's a great plugin. It doesn't have the same API than Flash, and you need to be careful when creating links in your template, but at least it works with D2 and it's don the right way.<br>
<br></div>In the mean time I'll try to make plugins more agile...<br><br></div>Hope that helps<br></div>Dams<br><div><div><div><div><br><br></div></div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">
On 5 February 2013 12:20, Julio Fraire <span dir="ltr"><<a href="mailto:julio.fraire@gmail.com" target="_blank">julio.fraire@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>Hi Damien,<br><br></div>I would never say it's your fault, but rather that *thanks to you* we get to play with this *unreleased* module you have kindly shared.<br><br></div>I'd like to help. What nice way around issues are you referring to?<br>
<br></div><div>Thanks again<br></div><br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 10:26 AM, damien krotkine <span dir="ltr"><<a href="mailto:dkrotkine@gmail.com" target="_blank">dkrotkine@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br><br></div>It's my fault, I haven't had any time to work on my plugins. Eventhough David Golden has provided a nice way to work around issues, I still haven't updated my code, but it's in the todo list.<br>
<br></div>I'll try to fix it quickly. <br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On 5 February 2013 00:47, Julio Fraire <span dir="ltr"><<a href="mailto:julio.fraire@gmail.com" target="_blank">julio.fraire@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I am trying to port an application from Dancer1 to Dancer2, but I have not been able to make FlashMessage work. I took the code from github, from the branch topic/Dancer2 but several strange things happen when I include it.<br>
<br>For starters, the before_template_render hook does not appear in the debug messages that show as the app initializes (with DANCER_CORE_DEBUG set) and it is never run.<br><br></div>Most importantly, under some circumstances the app returns a new, fresh session loosing whatever was in the old one (which remains in disk, but the key is lost).<br>
<br></div>I put the simplest code in <a href="https://gist.github.com/4710740" target="_blank">https://gist.github.com/4710740</a>. Note that it must be run with the topic/Dancer2 branch of FlashMessage. Try running /logout without logging in; a second session appears.<br>
<br></div><div>Is this something that you can reproduce? Am I doing something wrong? <br></div><div><br></div>Not the least, thank you all for such hard work on Dancer and the whole ecosystem. I use FlashMessage for the other little apps I've written and it works very nice.<span><font color="#888888"><br>
<br></font></span></div><span><font color="#888888">Julio Fraire<br></font></span></div>
<br></div></div>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>