Sha256: 57841a83b9ec177e63f77e91755bb3f65877a77200c635f3c73589143ae45c6a

Contents?: true

Size: 623 Bytes

Versions: 1

Compression:

Stored size: 623 Bytes

Contents

._element
  span._name = item.el_name
  - if item.class_name.present?
    span._classes
      - item.class_name.split(/\s+/).each do |c|
        span._class = c
  - if item.attrs.any?
    span._attributes
      - item.attrs.each do |a|
        span._attr
          span._name = a.name
          span._value title="#{a.value.length > 27 ? a.value.strip : nil}" = a.value
  - if item.text
    span._text title="#{item.text.length > 27 ? item.text.strip : nil}" = item.text

  - if item.children.any?
    - item.children.each do | child |
      = partial 'partials/glyptotheque/model-outline-element', locals: { item: child }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sculptor-0.0.7 lib/sculptor/templates/glyptotheque/source/partials/glyptotheque/_model-outline-element.slim