Sha256: 4e6d1869589e52252745fea29d3eed8d1ff48c0cc08bf53c20563e46289677c8
Contents?: true
Size: 604 Bytes
Versions: 8
Compression:
Stored size: 604 Bytes
Contents
- menu = attr 'menu' - menuitem = attr 'menuitem' - if !(submenus = attr 'submenus').empty? = html_tag('span', { :class => ['menuseq'] }.merge(data_attrs(@attributes))) span.menu=menu | ▸  =submenus.map {|submenu| %(<span class="submenu">#{submenu}</span> ▸ ) }.join span.menuitem=menuitem - elsif !menuitem.nil? = html_tag('span', { :class => ['menuseq'] }.merge(data_attrs(@attributes))) span.menu=menu | ▸  span.menuitem=menuitem - else = html_tag('span', { :class => ['menu'] }.merge(data_attrs(@attributes))) = menu
Version data entries
8 entries across 8 versions & 1 rubygems