Sha256: 34beabc9d8d8085b690af1c3c7cbb774711ef7087f222bc492f618b4c7cb2cdd
Contents?: true
Size: 945 Bytes
Versions: 21
Compression:
Stored size: 945 Bytes
Contents
- if (checklist = (option? :checklist) ? 'checklist' : nil) - if @document.attr? :icons, 'font' - marker_checked = '<i class="icon-check"></i>' - marker_unchecked = '<i class="icon-check-empty"></i>' - else - marker_checked = '⊠' - marker_unchecked = '◻' %div{:id=>@id, :class=>['ulist', checklist, @style, role]} - if title? .title=title %ul{:class=>(checklist || @style)} - items.each do |item| %li{:class=>('slide' if option? :step)}< - if item.blocks? %p - if checklist && (item.attr? :checkbox) =%(#{(item.attr? :checked) ? marker_checked : marker_unchecked} #{item.text}) - else =item.text =item.content.chomp - else - if checklist && (item.attr? :checkbox) =%(#{(item.attr? :checked) ? marker_checked : marker_unchecked} #{item.text}) - else =item.text
Version data entries
21 entries across 21 versions & 1 rubygems