module FrontendHelpers module Html5Helper def html_tag(attrs = {}, &block) attrs.symbolize_keys! haml_concat "".html_safe haml_concat "".html_safe haml_concat "".html_safe haml_concat "".html_safe haml_tag :html, attrs do haml_concat "".html_safe block.call end end end end ActionView::Base.send :include, FrontendHelpers::Html5Helper