Method: Apotomo::Rails::ViewHelper#widget_div

Defined in:
lib/apotomo/rails/view_helper.rb

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

Wraps your content in a div and sets the id. Feel free to pass additional html options.

Example:

- widget_div do
%p I'm wrapped

will render

I'm wrapped



49
50
51
52
# File 'lib/apotomo/rails/view_helper.rb', line 49

def widget_div(options={}, &block)
  options.reverse_merge!(:id => widget_id) 
  (:div, options, &block)
end