docelic / fluence

WYSIWYG wiki powered by Crystal, markdown, and Git
GNU General Public License v3.0
48 stars 1 forks source link

Convert flash messages from Strings to Array(String) #41

Closed docelic closed 6 years ago

docelic commented 6 years ago

The flash functionality is coming from kemal-flash shard so it is not trivial to change.

However, the desired functionality already works:

With flash["X"] = "message", the "X" is getting inserted into ...class="alert-X".

This gives us the ability to create e.g. 3 different success boxes in this way:

flash["success success-my1"] = "Msg 1"
flash["success success-my2"] = "Msg 2"
flash["success success-my3"] = "Msg 3"