Sha256: 40d6fb573ec8c2db35e7eaf6f0982f9d1832d5df4502be23c24818e5086d2a40

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

module Sketchily
  def sketchily_show(uri, options = {})
    "<img src='data:image/svg+xml;base64,#{uri}' #{"width='#{options[:width]}'" if options[:width]} #{"height='#{options[:height]}'" if options[:height]}/>".html_safe
  end

  def svg_show(uri, options = {})
    sketchily_show(uri, options)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sketchily-0.0.2 app/helpers/sketchily.rb~