module ExpressAdmin class Flash < ExpressTemplates::Components::Base contains -> { helpers.flash.each do |flash_message| div(class:"flash nav-alert alert-box ", data: {alert: ''}) { span flash_message[1] a(class: 'close', href: "#") { "×".html_safe } } end } end end