Headers
The header provides the necessary template metadata and allows you to setup a template option blueprint specific to the template. The header is written in YAML at the top of the template's HTML file.
title
The template's title.
cname
The template's unique identifier. HTML files with a cname
provided will be treated as templates. Files without will be treated as layouts or imports.
type
The template type, either page
or embed
. This defaults to page
.
layout
The cname
of a layout template to render this template within. This is optional.
blueprint
Template options can be added with a blueprint field, identical to the theme blueprint structure but written with YAML syntax. These template options are then passed into the templates as variables.
{{ options.options_group_name.option_name }}
---
title: Template Title
cname: mainpage
layout: layout // optional, cname of layout
blueprint: ...
---
<div pd-editable="main"></div>