lib/helpers.js
function(path, full, secure) {
      var root = '';

      if (full) {
        root = app.set('url full');
      } else {
        root = app.set('url prefix');
      }

      // Remove preceding slash if one exists.
      if (path && path[0] === '/') {
        path = path.slice(1);
      }

      if (secure) {
        root =
          undefsafe(config, 'url.ssl.host') || undefsafe(config, 'url.host');
        root = 'https://' + root;
      }

      return path ? root + '/' + path : root;
    }
function(path, full, secure) {
      var root = '';

      if (full) {
        root = app.set('url full');
      } else {
        root = app.set('url prefix');
      }

      // Remove preceding slash if one exists.
      if (path && path[0] === '/') {
        path = path.slice(1);
      }

      if (secure) {
        root =
          undefsafe(config, 'url.ssl.host') || undefsafe(config, 'url.host');
        root = 'https://' + root;
      }

      return path ? root + '/' + path : root;
    }
function ( path , full , secure ) { var root = '' ; if ( full ) { root = app . set ( 'url full' ) ; } else { root = app . set ( 'url prefix' ) ; } // Remove preceding slash if one exists. if ( path && path [ 0 ] === '/' ) { path = path . slice ( 1 ) ; } if ( secure ) { root = undefsafe ( config , 'url.ssl.host' ) || undefsafe ( config , 'url.host' ) ; root = 'https://' + root ; } return path ? root + '/' + path : root ; }
Generates a url for the path provided including prefix. If the second full parameter is provided then a full url including domain and protocol will be returned.
Generates a url for the path provided including prefix . If the second full parameter is provided then a full url including domain and protocol will be returned .