module Sprockets::URIUtils
def build_asset_uri(path, params = {})
params - Hash of optional parameters
path - String file path
# => "file:///tmp/js/application.coffee?type=application/javascript"
build("/tmp/js/application.coffee", type: "application/javascript")
Examples
Internal: Build Asset URI.
def build_asset_uri(path, params = {}) join_file_uri("file", nil, path, encode_uri_query_params(params)) end