nl_tokens: / * Exemples : S . html . url ( [ / : id - : slug post . id post . slug ] ) S . html . url ( / site / login ) S . html . url ( [ / : id - : slug post . id post . slug { target : _blank ? : page = 2 } ] )
pl_tokens: function ( url , /*#if NODE*/ entry , /*#/if*/ options ) { if ( ! S . isObj ( options ) ) options = { full : options } ; /*#if NODE*/ /*#if DEV*/ if ( entry === false || entry === true ) throw new Error ( 'Entry param cannot be false or true' ) ; /*#/if*/ if ( entry == null ) { entry = this . req . entry ; options . full = /*#ifelse DEV */ ( '/~' + entry || <mask> . full === true ? Config . siteUrl [ entry ] : '' ) /*#/if*/ ; } else if ( ( entry !== this . req . entry && options . full !== false ) || options . full === true ) options . full = /*#ifelse DEV */ ( '/~' + entry || Config . siteUrl [ entry ] ) /*#/if*/ ; else options . full = /*#ifelse DEV */ ( '/~' + entry || '' ) /*#/if*/ ; /*#else*/ options . full = '' ; /*#/if*/ if ( S . isString ( url ) || ! url ) { if ( url ) url = url . trim ( ) ; if ( ! url || url === '/' ) return options . full + '/' ; else { if ( url . contains ( '://' ) ) return url ; if ( url . startsWith ( '\\/' ) ) return url . substr ( 1 ) ; if ( url . charAt ( 0 ) === '/' ) return options . full + this . router . getStringLink ( this . req . lang , /*#if NODE*/ entry , /*#/if*/ url . substr ( 1 ) ) ; } } else { return ( options . full || '' ) + this . router . getArrayLink ( this . req . lang , /*#if NODE*/ entry , /*#/if*/ url ) ; } }