#render string as slim template
example:
module WelcomeHelper
def tile_link_to(title, href, icon_content = nil, &block)
icon_content = capture { block.call }.strip.squish if block_given?
content = <<-slim
.tile
a.wrap_lnk href="#{href}"
span.title #{title}
.icon
#{icon_content}
slim
Slim::Template.new{ content }.render.html_safe
end
end