DamsHope that helpsHi again,In the mean time I'll try to make plugins more agile...
David Golden has written Dancer::Plugin::Deferred, which is a correct implementation of the basic concept that is badly implemented in Dancer::Plugin::FlashMessage.
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.
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.
On 5 February 2013 12:20, Julio Fraire <julio.fraire@gmail.com> wrote:I'd like to help. What nice way around issues are you referring to?Hi Damien,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.
Thanks againOn Tue, Feb 5, 2013 at 10:26 AM, damien krotkine <dkrotkine@gmail.com> wrote:
I'll try to fix it quickly.Hi,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.
On 5 February 2013 00:47, Julio Fraire <julio.fraire@gmail.com> wrote:
_______________________________________________Julio FraireI put the simplest code in https://gist.github.com/4710740. Note that it must be run with the topic/Dancer2 branch of FlashMessage. Try running /logout without logging in; a second session appears.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).Hello,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.
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.
Is this something that you can reproduce? Am I doing something wrong?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.
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users