lib/escort.js
function (bind, prefix) {
        return function (path, callback) {
            var prefixedPath = prefix + path;
            validatePath(prefixedPath);
            var innerMethods = spawn(escort.prototype, {
                bind: function (routeName, route, descriptor) {
                    if (arguments.length === 2) {
                        descriptor = route;
                        route = routeName;
                        if (Array.isArray(route)) {
                            routeName = guessRouteName(prefixedPath + route[0]);
                        } else {
                            routeName = guessRouteName(prefixedPath + route);
                        }
                    }
                    return bind(routeName, route, descriptor, prefixedPath);
                },
                submount: makeSubmountFunction(bind, prefixedPath)
            });
            
            callback.call(innerMethods, innerMethods);
        };
    }
function (bind, prefix) {
        return function (path, callback) {
            var prefixedPath = prefix + path;
            validatePath(prefixedPath);
            var innerMethods = spawn(escort.prototype, {
                bind: function (routeName, route, descriptor) {
                    if (arguments.length === 2) {
                        descriptor = route;
                        route = routeName;
                        if (Array.isArray(route)) {
                            routeName = guessRouteName(prefixedPath + route[0]);
                        } else {
                            routeName = guessRouteName(prefixedPath + route);
                        }
                    }
                    return bind(routeName, route, descriptor, prefixedPath);
                },
                submount: makeSubmountFunction(bind, prefixedPath)
            });
            
            callback.call(innerMethods, innerMethods);
        };
    }
function ( bind , prefix ) { return function ( path , callback ) { var prefixedPath = prefix + path ; validatePath ( prefixedPath ) ; var innerMethods = spawn ( escort . prototype , { bind : function ( routeName , route , descriptor ) { if ( arguments . length === 2 ) { descriptor = route ; route = routeName ; if ( Array . isArray ( route ) ) { routeName = guessRouteName ( prefixedPath + route [ 0 ] ) ; } else { routeName = guessRouteName ( prefixedPath + route ) ; } } return bind ( routeName , route , descriptor , prefixedPath ) ; } , submount : makeSubmountFunction ( bind , prefixedPath ) } ) ; callback . call ( innerMethods , innerMethods ) ; } ; }
Make the submount function for the escort Object.

@param {Function} bind the bind function for the current escort Object.
@param {String} prefix the route prefix for the submount.
@api private

@example makeSubmountFunction("/forums")
Make the submount function for the escort Object .