lib/render.js
function renderDynamicRoute(pageId) {
  return (req, res) => {
    const hrStart = process.hrtime(),
      site = res.locals.site,
      pageUri = `${getExpressRoutePrefix(site)}/_pages/${pageId}@published`;

    return module.exports.renderPage(pageUri, req, res, hrStart);
  };
}
function renderDynamicRoute(pageId) {
  return (req, res) => {
    const hrStart = process.hrtime(),
      site = res.locals.site,
      pageUri = `${getExpressRoutePrefix(site)}/_pages/${pageId}@published`;

    return module.exports.renderPage(pageUri, req, res, hrStart);
  };
}
function renderDynamicRoute ( pageId ) { return ( req , res ) => { const hrStart = process . hrtime ( ) , site = res . locals . site , pageUri = ` ${ getExpressRoutePrefix ( site ) } ${ pageId } ` ; return module . exports . renderPage ( pageUri , req , res , hrStart ) ; } ; }
Given a pageId, render the page directly from a call
to an Express route without trying to match to a uri
directly

@param  {String} pageId
@return {Function}
Given a pageId render the page directly from a call to an Express route without trying to match to a uri directly