@Seq("info",
"info-autoclose",
"error").zipWithIndex.map { case (t, i) =>
@flash.data.get(t).map { message =>
@defining(t.split("-")) { ts =>
@defining(if(ts.last == "autoclose") "autoclose" else "") { ac =>
}
}
}.getOrElse("")
}
@* Used by window.flash() in util.coffee *@