site/app/common/pathService.js
function(path) {
                var pathParts = this.getPathParts(path),
                    tabs,
                    page;
                if (pathParts.length === 0) {
                    return;
                }
                page = pathParts[0];
                if (!page) {
                    return;
                }
                if (page === 'examples' && pathParts.length > 1) {
                    tabs = [];
                    tabs.push('app/examples/' + pathParts[1] + '.html');
                    tabs.push('app/examples/' + pathParts[1] + '.js');
                    return tabs;
                }
            }
function(path) {
                var pathParts = this.getPathParts(path),
                    tabs,
                    page;
                if (pathParts.length === 0) {
                    return;
                }
                page = pathParts[0];
                if (!page) {
                    return;
                }
                if (page === 'examples' && pathParts.length > 1) {
                    tabs = [];
                    tabs.push('app/examples/' + pathParts[1] + '.html');
                    tabs.push('app/examples/' + pathParts[1] + '.js');
                    return tabs;
                }
            }
function ( path ) { var pathParts = this . getPathParts ( path ) , tabs , page ; if ( pathParts . length === 0 ) { return ; } page = pathParts [ 0 ] ; if ( ! page ) { return ; } if ( page === 'examples' && pathParts . length > 1 ) { tabs = [ ] ; tabs . push ( 'app/examples/' + pathParts [ 1 ] + '.html' ) ; tabs . push ( 'app/examples/' + pathParts [ 1 ] + '.js' ) ; return tabs ; } }
parse snippet include file locations from route
parse snippet include file locations from route