Sha256: 7a26f0d5c11470498356c4fe9aab01a99f5ff08c1a7ff8ce42af11a5aff364d6
Contents?: true
Size: 622 Bytes
Versions: 28
Compression:
Stored size: 622 Bytes
Contents
- headline = headline || nil - notes = notes || nil - link = link || nil - width = width || nil - height = height || nil - alt = alt || nil ruby: def image_helper(src, alt, width, height) tag = { :tag => 'img' } tag[:width] = width if width tag[:height] = height if height tag[:alt] = alt if alt tag[:src] = src tag end section - if headline h2= headline - if link a.image href="#{link}" target="_blank" *image_helper(src, alt, width, height) - else *image_helper(src, alt, width, height) - if notes aside.notes= notes
Version data entries
28 entries across 28 versions & 1 rubygems