function router(input) {
		var route = input.route;
		var routeSegment = "/";
		var routes = input.routes;

		for (var i = 1; i < route.length; i++) {
			var routeCharacter = route[i];

			if (routeCharacter === "/") {
				routes = (routeSegment in routes ? routes[routeSegment] : routes["/*"])[1];
				routeSegment = "/";
			} else {
				routeSegment += routeCharacter;
			}
		}

		return (routeSegment in routes ? routes[routeSegment] : routes["/*"])[0](input);
	}
Returns a view given routes that map to views and the current route.

@param {object} input
@returns {object} view