Templates
Sometimes you want a repeated layout in your Hyperbook. With templates, you can do that.
You can define a template by placing it in the templates
folder at the root of your Hyperbook.
Then you can create .yml
or .json
files in your book
folder.
The files need to have a property template
which references a file from the templates
folder.
Example
The template is located at templates/template-demo.md
:
In our book folder we can use the template by defining a YAML or JSON file:
Resulting page for the JSON file
Resulting page for the YAML file
Helpers
You can use the same helpers as for snippets