Root Scope Reserved Variables
Every page on the site is created by processing templates using specific pre-defined inputs. These reserved variables are present on the root scope of every pageload.
Properties
| Name | Type | Description |
|---|---|---|
site |
{{ site }} | An object containing information about the current site - including the custom site settings |
request |
{{ request }} | An object containing information about the current request |
client |
{{ client }} | An object containing information about the current "client" - such as the "UserAgent", the first request date, the number of client sessions and pages visited, custom client properties, and more |
cookies |
{{ cookies }} | An object containing all of the cookies from the current request (can also be accessed via the client or request objects) |
client_permissions |
{{ client_permissions }} | An object containing the permissions that are set for the current client. Can also be accessed via the client object |
session |
{{ session }} | An object containing information about the current "session", including the session start date, when it will expire if the user does not make any further requests, how many and which pages they have visited, custom client properties, and more. |
automatic_markup |
{{ automatic_markup }} | An object containing information about the currently-configured behavior of the automatic page markup |
header_tags |
object | Deprecated. A placeholder primarily used to inject information into the document header - such as the browser title, meta information, and any stylesheets or javascript added using the {% add_stylesheet %} and {% add_javascript %} tags. Use of this object is entirely optional - if not included in the template then this information will automatically be output directly before the tag in your HTML output |
body_tags |
object | Deprecated. A placeholder used to inject all of the javascript added to the body using {% add_javascript position:'body' %}. This is also a placeholder for the script that enables the "Edit Page" button to be displayed on your live site when you are logged into Marketpath CMS and viewing your site via https. Use of this object is entirely optional - if not included in the template then this information will automatically be output directly before the |