# File lib/merb-assets/assets_mixin.rb, line 100 def image_tag(img, opts={}) if img[0].chr == '/' opts[:src] = img else opts[:path] ||= if img =~ %r{^https?://} '' else if Merb::Config[:path_prefix] Merb::Config[:path_prefix] + '/images/' else '/images/' end end opts[:src] ||= opts.delete(:path) + img end %{<img #{ opts.to_xml_attributes } />} end