class Sprockets::Asset

def expand_root_path(path)

Replace `$root` placeholder with actual environment root.
def expand_root_path(path)
  path.to_s.sub(/^\$root/, @root)
end