lib/engines.js
function(ext) {
      ext = ext || this.option('view engine');
      if (ext && ext[0] !== '.') {
        ext = '.' + ext;
      }
      return this._.engines.getEngine(ext);
    }
function(ext) {
      ext = ext || this.option('view engine');
      if (ext && ext[0] !== '.') {
        ext = '.' + ext;
      }
      return this._.engines.getEngine(ext);
    }
function ( ext ) { ext = ext || this . option ( 'view engine' ) ; if ( ext && ext [ 0 ] !== '.' ) { ext = '.' + ext ; } return this . _ . engines . getEngine ( ext ) ; }
Get the engine settings registered for the given `ext`.

@param {String} `ext` The engine to get.
@api public
Get the engine settings registered for the given ext .