Module: KeystoneImage::Helpers

Defined in:
lib/keystone_image.rb

Instance Method Summary collapse

Instance Method Details

#keystone_image(options = {}) ⇒ Object



10
11
12
13
# File 'lib/keystone_image.rb', line 10

def keystone_image(options={})
  html = javascript_include_tag('jquery.keystone-image', 'keystone-image-init', :defer => true)
  html + %Q!<meta name='keystone-image-options' content='#{options.to_json}'>!.html_safe
end