Page variables - limburgie/c3s GitHub Wiki

The following template variables are automatically injected into each page:

  • api: instance of the Content API that can be used to query content from the remote content provider. See the Content API page for more information.
  • site.locales: list of all the locales as configured in c3s.json. See Configure location settings for more information.
  • site.name: name of the site as configured in c3s.json.
  • site.pages: list of all pages that are not hidden from the navigation. See Define pages for more information.
  • request.page: instance of the current page. Use this variable to e.g. show the page name inside the page or to mark the current page in the navigation.
  • request.params: list of (String) request parameters. See Request parameters for more information.
  • request.locale: returns the currently active locale for the site. See Localize page content for more information.
  • i18n: object representing the resource bundle for the current locale. See Localize page content for more information.
  • uri: helper for creating localized URLs. See Localize page content for more information.