src/ResourceView.js
function render_path(path, params) {
	params = params || {};
	return ARRAY( is.array(path) ? path : [path] ).map(function(p) {
		return p.replace(/:([a-z0-9A-Z\_]+)/g, function(match, key) {
			if(params[key] === undefined) {
				return ':'+key;
			}
			return ''+fix_object_ids(params[key]);
		});
	}).valueOf();
}
function render_path(path, params) {
	params = params || {};
	return ARRAY( is.array(path) ? path : [path] ).map(function(p) {
		return p.replace(/:([a-z0-9A-Z\_]+)/g, function(match, key) {
			if(params[key] === undefined) {
				return ':'+key;
			}
			return ''+fix_object_ids(params[key]);
		});
	}).valueOf();
}
function render_path ( path , params ) { params = params || { } ; return ARRAY ( is . array ( path ) ? path : [ path ] ) . map ( function ( p ) { return p . replace ( / :([a-z0-9A-Z\_]+) / g , function ( match , key ) { if ( params [ key ] === undefined ) { return ':' + key ; } return '' + fix_object_ids ( params [ key ] ) ; } ) ; } ) . valueOf ( ) ; }
Render `path` with optional `params`
Render path with optional params