Managing templates
Templates are static HTML files with placeholders left for populating content. Placeholders are defined with double curly braces such as {{Body}}
These will automatically be replaced by content if it is defined, or removed if no content is defined. Templates must be placed directly in the Templates folder and have the .html file extension.
Standard placeholders
{{Title}}
- The title of the page (the filename)
{{Body}}
- The main Body of the page (used also if no section defined)
{{PrimaryNavigation}}
- Renders an unordered list of the top level pages / sections including the home page.
{{SecondaryNavigation}}
- Renders an unordered list of ancestors, siblings and child pages.
{{Navigation}}
- Renders an unordered list of all pages. Useful for a sitemap page.
{{Breadcrumbs}}
- Renders an unordered list of the ancestors.
{{Version}}
- The current sync-version for your account. Useful for cache-invalidation.
Custom placeholders
Placeholders can be defined using only letters/numbers within double curly braces. Spaces cannot be used for placeholders.
Placeholders can contain default value, placed after a vertical bar symbol (|). e.g. {{Title | Default Title to be used.}}
Cascading templates
Templates can inherit from other templates using the regular :TemplateName notation. This allows common parts of templates to be reused without duplicating HTML across files. Templates can define placeholders that are populated by child templates.