code: function generatePath(route, params) {
      return route.pattern.replace(nameOrSplatParam, function(_, name) { return params[name]; });
    }
docs: Internal: Generates a URL path based on the given route and params object.  route  - A route object created by the `Router#define` method. params - An object containing param values to interpolate into the route's pattern.  Returns a string.