ColdBox/coldbox-platform — pull request #185 by evagoras (2014-04-10 02:49:37+00:00)
Title: Update MessageBox.cfc

Add the msg array to the returned struct used in the template to make it easier to customize the messages displayed - instead of simple displaying them by their default separator "
". An example would be to display them in bullet form:

...

.

Here's an example of a custom template which uses Twitter Bootstrap:

switch( msgStruct.type ){
case "info" : {
local.cssType = "info";
break;
}
case "error" : {
local.cssType = "danger";
break;
}
default : {
local.cssType = "warning";
}
}

Error!

#msgStruct.messageArray[position]#

#msgStruct.message#