Sha256: 711e06b9e5e1f16e24cc511655511a5e988283e5bd5539b2ed135e7873b54af6

Contents?: true

Size: 341 Bytes

Versions: 1

Compression:

Stored size: 341 Bytes

Contents

/ RubyApp::Elements::List
%div.list{attributes}
  - self.items.each_with_index do |item, index|
    - if index == self.selected_index
      %div.selected
        %span.selected{:index => index}
          = yield :item, item, index
    - else
      %div.item
        %a.item{:href => '', :index => index}
          = yield :item, item, index

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
_rubyapp-0.0.3 lib/rubyapp/elements/list.html.haml