nl_tokens: Returns an array of objects encapsulating the routes to be configured .
pl_tokens: function ( ) { // If we've already loaded the routes, skip. if ( this . routes . <mask> === 0 ) { // Grab the entries. var routes ; try { routes = this . readFile ( this . options . rootPath + this . options . routesFile ) ; } catch ( e ) { throw new Error ( 'The specified routes file (' + this . options . routesFile + ') does not exist or could not be read.' ) ; } // Turn them into actual route entries. for ( var i = 0 ; i < routes . length ; i ++ ) { // Split it up into its component parts (VERB /path controller.method). // TODO: An equivalent to PHP's list() would be really awesome too. var bits = routes [ i ] . split ( / \s+ / ) ; // Split the controller up further, so we can store the file and method separately. var controller = bits [ 2 ] . split ( '.' ) ; // If the controller contains a wildcard, we handle it differently. if ( controller [ 1 ] == '{method}' ) { this . getWildcardRoutes ( bits [ 0 ] . toLowerCase ( ) , bits [ 1 ] , controller [ 0 ] ) ; } else { this . addNewRouteEntry ( bits [ 0 ] . toLowerCase ( ) , bits [ 1 ] , controller [ 0 ] , controller [ 1 ] ) ; } } } return this . routes ; }