[Dancer-users] Flash Message
dkrotkine at gmail.com
Sun Jan 30 14:35:21 CET 2011
On 30 January 2011 13:30, Al Newkirk & Associates <we at ana.im> wrote:
> On Fri, Jan 28, 2011 at 12:33 PM, damien krotkine <dkrotkine at gmail.com>
>> I agree with Brian, for a slightly different reason :
>> Let's imagine this:
>> you have a Template1, that does this : <% flash.keys() %>, to be able
>> to know that they are errors. If that's the case, it doesn't display
>> the errors, but display a link, saying that they are erros. This link
>> does a new request against the server, serving Template2
>> Template2 does use flash.error, and effectively consumes the message
> I've been using the FlashMessage plugin in a few apps now, and it works for
> me. The Flash message concept is implemented in every other language and
> framework in exactly the same manner,
Well, that's the issue I think : can you point me to a description of
the "standard" behaviour", or describe it here for me ?
I don't know what is the common behaviour.
the problem seems to be
> implementation. If the plugin is dramatically altered, my apps will no
> longer function as designed :( which sucks.
That won't happen, it will be backward compatible
> for your template problem, try ... <% flash( 'error', flash( 'error' ) ) %>
> because your requirements are not normal use-case scenario. FlashMessage
> should support array though.
See latest implementation ( version 0.307 )
More information about the Dancer-users