# File lib/juicer/dependency_resolver/dependency_resolver.rb, line 37
    def resolve_path(path, reference)
      # Absolute URL
      if path =~ %r{^(/|[a-z]+:)}
        if @options[:document_root].nil?
          msg = "Cannot resolve absolute path '#{path}' without document root option"
          raise ArgumentError.new(msg)
        end

        path.sub!(%r{^[a-z]+://[^/]+/}, '')
        return File.expand_path(File.join(@options[:document_root], path))
      end

      File.expand_path(File.join(File.dirname(reference), path))
    end