lib/render.js
function findRenderer(extension) {
  var renderer;

  // Default to HTML if you don't have an extension
  extension = extension || renderers.default;
  // Get the renderer
  renderer = _.get(renderers, `${extension}`, null);

  if (renderer) {
    return renderer;
  } else {
    return new Error(`Renderer not found for extension ${extension}`);
  }
}
function findRenderer(extension) {
  var renderer;

  // Default to HTML if you don't have an extension
  extension = extension || renderers.default;
  // Get the renderer
  renderer = _.get(renderers, `${extension}`, null);

  if (renderer) {
    return renderer;
  } else {
    return new Error(`Renderer not found for extension ${extension}`);
  }
}
function findRenderer ( extension ) { var renderer ; // Default to HTML if you don't have an extension extension = extension || renderers . default ; // Get the renderer renderer = _ . get ( renderers , ` ${ extension } ` , null ) ; if ( renderer ) { return renderer ; } else { return new Error ( ` ${ extension } ` ) ; } }
Find the renderer so to use for the request.
@param {String|Undefined} extension
@return {Object}
Find the renderer so to use for the request .