= component_tag_for tabs do
  .outer
    = tabs.decorate.background

    - inner_content = capture do
      = tabs.decorate.h1

      /! Nav tabs
      ul.nav.nav-tabs role='tablist'
        - tabs.items.each_with_index do |item, i|
          li[class=('active' if i.zero?)]
            a data-toggle='tab' href="##{dom_id(item)}" role='tab'
              = item.decorate.icon
              = item.h1

      /! Tab panes
      .tab-content
        - tabs.items.each_with_index do |item, i|
          .tab-pane.fade id=dom_id(item) class=('active in' if i.zero?)
            - if item_capture = tabs.options[:custom_items] && tabs.options[:custom_items][item.key]
              = item_capture
            - else
              = component item.key

    - if defined?(block)
      - block.call(tabs, inner_content)
    - else
      .inner= inner_content

= component_tag_for tabs do
  .outer
    = tabs.decorate.background

    - inner_content = capture do
      = tabs.decorate.h1

      /! Nav tabs
      ul.nav.nav-tabs role='tablist'
        - tabs.items.each_with_index do |item, i|
          li[class=('active' if i.zero?)]
            a data-toggle='tab' href="##{dom_id(item)}" role='tab'
              = item.decorate.icon
              = item.h1

      /! Tab panes
      .tab-content
        - tabs.items.each_with_index do |item, i|
          .tab-pane.fade id=dom_id(item) class=('active in' if i.zero?)
            - if item_capture = tabs.options[:custom_items] && tabs.options[:custom_items][item.key]
              = item_capture
            - else
              = component item

    - if defined?(block)
      - block.call(tabs, inner_content)
    - else
      .inner= inner_content

Update Tabs template - Render items passing object instead key
Update Tabs template - Render items passing object instead key

polomarte/martian_components,polomarte/martian_components,polomarte/martian_components