module Spyro::ActionViewExtension::ContainerHelper
Public Instance Methods
box(opts = {})
click to toggle source
# File lib/spyro/helpers/action_view_extension.rb, line 129 def box opts = {}, &block @inside_box = true opts[:html] ||= {} opts[:html][:class] = [*opts[:html][:class], "panel", "panel-default"] content = capture_haml do haml_tag :div, opts[:html] do # haml_tag :div, :class => "caption" do content = capture(&block) haml_concat content # end end end @inside_box = false content end