nl_tokens: static resource
pl_tokens: function ( uri , config ) { // c:/a/b/c.png?a=1 var arr = uri . split ( '?' ) ; var isdir = _fs . isdir ( arr [ 0 ] ) ; // check version only for file if ( config . versionStac && ! isdir ) { if ( ! ! arr [ 1 ] ) { this . emit ( 'warn' , { data : [ uri ] , message : 'static resource %s with error version' } ) ; } else { arr = _io . adjustResource ( arr [ 0 ] , config , function ( src , dst ) { this . emit ( 'debug' , { data : [ src , dst ] , message : 'copy static resource %s to %s' } ) ; } . <mask> ( this ) ) ; } } // update path arr [ 0 ] = this . _formatURI ( arr [ 0 ] , { fromPage : config . fromPage , pathRoot : config . output , webRoot : config . webRoot , domain : config . rsDomain } ) ; // fix last / for dir if ( isdir && ! / \/$ / . test ( arr [ 0 ] ) ) { arr [ 0 ] += '/' ; } return arr . join ( '?' ) ; }