class Sprockets::Context
def resolve(path, **kargs)
accept - String content accept type
path - String logical or absolute path
# => "file:///path/to/app/javascripts/bar.js?type=application/javascript"
resolve("./bar.js")
# => "file:///path/to/app/javascripts/foo.js?type=application/javascript"
resolve("foo.js")
restrict the search.
Relative paths will also be resolved. An accept type maybe given to
Public: Given a logical path, `resolve` will find and return an Asset URI.
def resolve(path, **kargs) kargs[:base_path] = @dirname uri, deps = environment.resolve!(path, **kargs) @dependencies.merge(deps) uri end