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}
978210
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);
  };
}
767960
def render_search_template(self, id=None, body=None, params=None):
        
        return self.transport.perform_request(
            "GET", _make_path("_render", "template", id), params=params, body=body
        )
210060
def get_page_as_pdf(self, page_id):
        
        headers = self.form_token_headers
        url = 'spaces/flyingpdf/pdfpageexport.action?pageId={pageId}'.format(pageId=page_id)
        return self.get(url, headers=headers, not_json_response=True)
572577
function createPage(id, callback) {
  return new Promise((resolve, reject) => {
    const pageId = id.substring(0, id.lastIndexOf("_"));

    const ctDataMode = this.getPageConfigAttribute(pageId, 'mode');
    const singleInstance = this.getSingleInstance(pageId);
    if (ctDataMode.toLowerCase().indexOf("singleinstance") !== -1 && singleInstance) {
      if (callback) {
        callback(singleInstance);
      }
      resolve();
    } else {
      let ReactComponent;
      const pageRouterConfig = this.config.router[pageId];
      if (pageRouterConfig) {
        // 路由中配置的ReactComponent
        const component = pageRouterConfig.component;
        if (component && component.then) {
          component.then((ReactComponentWrap) => {
            if (ReactComponentWrap) {
              // 每个页的逻辑组件
              ReactComponent = ReactComponentWrap.default;
              // 顶层容器
              const el = $(`<div data-ct-data-role="page"></div>`)[0];
              document.body.appendChild(el);
              // 包装逻辑组件
              const WrappedComponent = Page.create(el)(ReactComponent);
              // 包装逻辑组件放入顶层容器
              ReactDOM.render(
                <WrappedComponent
                  ctmobile={this}
                  id={id}
                  // ct-data的一系列配置
                  config={pageRouterConfig.config || {}}
                  // componentDidMount后的操作
                  callback={callback}
                />
                ,
                el,
                () => {
                  resolve();
                }
              );
            } else {
              reject();
            }
          }).catch((error) => {
            reject(error);
          });
        } else {
          reject();
        }
      } else {
        reject();
      }
    }

  });
}
205064
@Override
    public Page renderPage(String providerName, Map<String, Object> params)
    {
        if (!configMode)
            return super.renderPage(providerName, params);
        else
            return getPage();
    }
600506
function renderRoutes() {
  return (
    <Switch>
      {
        routes.map(route => (
          <Route key={route.path || ''} {...route} />
        ))
      }
    </Switch>
  );
}
304809
function(id) {
      var t = this;

      // Is there a tour running already?
      if (t.tourView) {
        t.tourView.stop();
      }

      // Load the Tour and start it
      var tour = new UI.Tour({id:id});
      tour.fetch(function(err){
        if (err) {
          alert("Error: Cannot open tour id: " + id);
          console.error(e);
          return;
        }

        // Go to the first page
        var pages = tour.get('pages');
        if (!pages.length) {
          alert('No pages in tour: ' + tour.get('title'));
          return;
        }

        // Save the current tour, and navigate to it
        localStorage.currentTour = JSON.stringify(tour);
        t.navigateTo(pages[0].url);
      });
    }
1106396
function (page) { // eslint-disable-line object-shorthand
			// Fill summary with compiled page content
			helper.summary.forEach((article, i, array) => {
				if (article.path === page.path) {
					array[i].content = page.content;
				}
			});

			// Returns unchanged page.
			return page;
		}
1030826
function routesCode (pages) {
  function genRoute ({
    path: pagePath,
    key: componentName,
    frontmatter: {
      layout
    },
    regularPath,
    _meta
  }) {
    let code = `
  {
    name: ${JSON.stringify(componentName)},
    path: ${JSON.stringify(pagePath)},
    component: GlobalLayout,
    beforeEnter: (to, from, next) => {
      ensureAsyncComponentsLoaded(${JSON.stringify(layout || 'Layout')}, ${JSON.stringify(componentName)}).then(next)
    },${_meta ? `\n    meta: ${JSON.stringify(_meta)}` : ''}
  }`

    const dncodedPath = decodeURIComponent(pagePath)
    if (dncodedPath !== pagePath) {
      code += `,
  {
    path: ${JSON.stringify(dncodedPath)},
    redirect: ${JSON.stringify(pagePath)}
  }`
    }

    if (/\/$/.test(pagePath)) {
      code += `,
  {
    path: ${JSON.stringify(pagePath + 'index.html')},
    redirect: ${JSON.stringify(pagePath)}
  }`
    }

    if (regularPath !== pagePath) {
      code += `,
  {
    path: ${JSON.stringify(regularPath)},
    redirect: ${JSON.stringify(pagePath)}
  }`
    }

    return code
  }

  const notFoundRoute = `,
  {
    path: '*',
    component: GlobalLayout
  }`

  return (
    `export const routes = [${pages.map(genRoute).join(',')}${notFoundRoute}\n]`
  )
}
898915
public function url_page($page_slug = '', $page_id = '')
    {
        $url = $this->siteUrl('pages/' . trim($page_slug) . '-page' . $this->encodeId(trim($page_id)));

        return $url;
    }
219407
function(args, connectionInfo, processPagedResults) {
  args.page = {value: 1};
  args.pageSize = {value: 200};
  // set a default function if none is provided
  if (!processPagedResults) {
    processPagedResults = defaultMethod_ForProcessingPagedResults_ForConsignmentProducts; // eslint-disable-line camelcase
  }
  return utils.processPagesRecursively(args, connectionInfo, fetchProductsByConsignment, processPagedResults);
}
264632
function (pageRequest) {
            var url = pageRequest.url, title = pageRequest.title, pageId = pageRequest.pageId, typeUtil = ariaUtilsType;
            this._lastPageId = pageId;
            if (typeUtil.isString(url)) {
                this._addInCache(url, pageId);
                if (this.getUrl() != url) {
                    this._hashManager.setHash(url);
                }
            }
            if (typeUtil.isString(title)) {
                Aria.$window.document.title = title;
            }

        }
114424
function (pageRequest) {
            var pageId = pageRequest.pageId, url = pageRequest.url, urlMap = this.__urlMap;
            if (pageId && url) {
                urlMap.pageIdToUrl[pageId] = url;
                urlMap.urlToPageId[url] = pageId;
                var alternativeUrl = url.replace(/\/$/, "");
                urlMap.urlToPageId[alternativeUrl] = pageId;
            }
        }
49588
function (str, options, cb) {
    var ECT = this.engine;
    var tmpl = this.cache(options) || this.cache(options, new ECT({ root: { page: str }}));
    tmpl.render('page', options, cb);
  }
307282
def render_page(path):
    
    try:
        page = Page.get_by_url(request.path)
    except NoResultFound:
        abort(404)

    return render_template(
        [page.template_name, current_app.config['PAGES_DEFAULT_TEMPLATE']],
        page=page)
1154201
function pages(req, res, next) {

    generator.getPage(req.url, function(err, page) {

      if (err || !page || !checkMethod(req, page)) return next();

      if (!isPageAuthorized(req, page)) {
        if (!server.login || page.nologin) return next();
        return server.login(req, res);
      }

      debug('page %s', page._href);

      // make req and res available to dynamic pages
      generator.req = req;
      generator.res = res;

      resHeaders(res, page);
      res.send(generator.renderDoc(page));

    });
  }
277075
function encodePagePath(path) {
  const paths = path.split('/');
  paths.forEach((item, index) => {
    paths[index] = encodeURIComponent(item);
  });
  return paths.join('/');
}