Module: Maglove::Widgets::Container::Helpers

Defined in:
lib/maglove/widgets/container.rb

Instance Method Summary collapse

Instance Method Details

#container_widget(options = {}, &block) ⇒ Object



90
91
92
93
94
95
96
97
98
99
# File 'lib/maglove/widgets/container.rb', line 90

def container_widget(options = {}, &block)
  widget_block(Widgets::Container.new(options)) do |widget|
    haml_tag :section, widget.container_options do
      haml_tag :div, widget.image_options do
        yield if block
        drop_container
      end
    end
  end
end