Module: Sinatra::Twitter::HAMLHelper

Defined in:
lib/sinatra/helpers/haml_helpers.rb

Instance Method Summary collapse

Instance Method Details

#container(layout = :fixed, &block) ⇒ Object



4
5
6
7
# File 'lib/sinatra/helpers/haml_helpers.rb', line 4

def container(layout=:fixed, &block)
  @layout = layout
  haml_tag :div, :class => layout == :fixed ? :container : 'container-fluid', &block
end

#row(&block) ⇒ Object



9
10
11
# File 'lib/sinatra/helpers/haml_helpers.rb', line 9

def row(&block)
  haml_tag :div, :class => @layout == :fixed ? :row : 'row-fluid', &block
end