# File lib/merb-assets/assets.rb, line 43 def asset_path(asset_type, filename, local_path = false) filename = filename.to_s if filename !~ /#{'\\' + ASSET_FILE_EXTENSIONS[asset_type]}\Z/ && filename.index('?').nil? filename << ASSET_FILE_EXTENSIONS[asset_type] end if filename !~ %r{^https?://} filename = "/#{asset_type}s/#{filename}" end if local_path return "public#{filename}" else return "#{Merb::Config[:path_prefix]}#{filename}" end end