def navbar(fluid: true, inverse: false, fixed: true, **options, &block)
      navbar_class = %w(navbar)

      if fixed
        navbar_class << 'navbar-fixed-top'
      else
        navbar_class << 'navbar-static-top'
      end

      navbar_class << 'navbar-inverse' if inverse


      div(merge_predef_class(navbar_class.join(' '), options)) do
        div(class: 'navbar-inner') do
          if fluid
            capture(&block) if block_given?
          else
            div(class: 'container') do
              capture(&block) if block_given?
            end
          end
        end
      end
    end
def navbar(fluid: true, inverse: false, fixed: true, **options, &block)
      navbar_class = %w(navbar)

      if fixed
        navbar_class << 'navbar-fixed-top'
      else
        navbar_class << 'navbar-static-top'
      end

      navbar_class << 'navbar-inverse' if inverse


      div(merge_predef_class(navbar_class.join(' '), options)) do
        div(class: 'navbar-inner') do
          if fluid
            capture(&block) if block_given?
          else
            div(class: 'container') do
              capture(&block) if block_given?
            end
          end
        end
      end
    end
Public: Bootstrap navbar. Only implements the navbar at the top of the
         page.


 fixed   - Boolean. If set to false, the navbar wouldn't be shown at the
           top of the page always while scrolling the page.
           ( default: true )
 fluid   - Boolean. If set to false, the navbar uses a fixed layout for its
           content. ( default: true )
 inverse - Boolean. Whether inverses the background color of the navbar.
 options - Other options can be accepted by navbar.
 block   - the content of a navbar, usually are navs and logos.

 Examples

   = navbar do
     = link_to('Title', '#', class: 'brand')
     = nav do
       = link_to('link 1', '#')
       = link_to('link 2', '#')
       = link_to('link 3', '#')
   # => <div class="navbar navbar-fixed-top">
          <div class="navbar-inner">
            <a href="#" class="brand">Title</a>
            <ul class="nav nav-">
              <li><a href="#">link 1</a></li>
              <li><a href="#">link 2</a></li>
              <li><a href="#">link 3</a></li>
            </ul>
          </div>
        </div>

   = navbar(fluid: false) do
     = link_to('Title', '#', class: 'brand')
     = nav do
       = link_to('link 1', '#')
       = link_to('link 2', '#')
       = link_to('link 3', '#')
   # => <div class="navbar navbar-fixed-top">
          <div class="navbar-inner">
            <div class="container">
              <a href="#" class="brand">Title</a>
              <ul class="nav nav-">
                <li><a href="#">link 1</a></li>
                <li><a href="#">link 2</a></li>
                <li><a href="#">link 3</a></li>
              </ul>
            </div>
          </div>
        </div>

 Return the whole navbar