code: function(includePath, defaultBase)
          {
              includePath = includePath || "";
              var rewriter = getRewriter(includePath);
              return function(path, base)
              {
                  // base should always be a dirname with no trailing slash
                  var obj = normalizeHash(path, rewriter);
                  path = obj.path;
                  var first2Chars = path.substr(0, 2);
                  if(
                      first2Chars !== ".." && first2Chars !== "./" && first2Chars !== "//" && first2Chars[0] !== "/" && path.indexOf("://") === -1
                  ) {
                      path = includePath + "/" + path;
                  }
                  return url(path, (base || defaultBase)) + obj.hash;
              }
          }
docs: /* rewrite /* resolve