We use Twig as our default template engine. If you haven't worked with Twig or the Liquid Templating language, make sure to read up on how Twig works here.
In addition to the variables and functions supported by Twig, we have a few custom variables/functions for you to work with.
Variables
Variable | Description | Required | Version Added | ||
---|---|---|---|---|---|
{{ content }} | Displays the main content for the site. This content changes each time a new page is loaded. | yes | 4.0 | ||
{{ left }} | Primary side block. Loads blocks 1 & 9. | yes | 4.0 | ||
{{ right }} | Secondary side block. Loads blocks 3 & 10 | yes | 4.0 | ||
{{ js }} | Loads all Javascript files at the footer. This must be placed before the </body> closing tag. | yes | 4.0 | ||
{{ title }} | Displays the site title. Must be placed inside the HTML <title></title> elements. | yes | 4.0 | ||
{{ header }} | Loads everything that is to be placed within <head></head>. | yes | 4.0 | ||
{{ html }} | Loads the directional and language settings for the site. Must be placed inside the <html> element.
| yes | 4.0 | ||
{{ body }} | Loads the pages ID and Class names. Must be placed inside the <body> element.
| yes | 4.0 | ||
{{ sticky_bar }} | Loads the notification panel for when a user is logged in. | yes | 4.0 |