Open sebn opened 10 years ago
This PR allows you to define flash messages in templates, and to render them with whatever controller you want.
This has some advantages:
Of course, the text-oriented API still works.
I have a working implementation, but it may deserve some refactoring:
isTextMessage()
flash()
flashTemplate()
WDYT?
This PR allows you to define flash messages in templates, and to render them with whatever controller you want.
This has some advantages:
Of course, the text-oriented API still works.
I have a working implementation, but it may deserve some refactoring:
isTextMessage()
method?flash()
method...flashTemplate()
? Any idea?WDYT?