# File lib/staticmatic/helpers/assets_helper.rb, line 93 def img(name, options = {}) options[:src] = name.match(%r{^((\.\.?)?/|https?://)}) ? name : "#{current_page_relative_path}images/#{name}" options[:alt] ||= name.split('/').last.split('.').first.capitalize.gsub(/_|-/, ' ') tag :img, options end