Templates

Templates live in the templates/ directory. They're Tera templates. The organization of the templates is arbitrary. Any number of Pages can link to a template.

Access data in templates

A Page can associate with a single Template. Template access Page content with the content Tera variable. Escape the content with content | safe. For example, a trivial template could look like this:

<!DOCTYPE html>
<html>
  <head></head>
  <body>
  {{ content | safe}}
  </body>
</html>

Section data is available globally to any template.