You can copy the yaml-code below and use it as frontmatter for an example page.
You can paste this URL into GitHub Issues to share your setup when filing bugs or questions
Handlebars:
Template
{{#each persons}}
{{>person person=.}}
{{/each}}
Preparation-Script
Handlebars.registerPartial(
"person",
"{{person.name}} is {{person.age}} years old.\n"
)
Input
{
persons: [
{ name: "Nils", age: 20 },
{ name: "Teddy", age: 10 },
{ name: "Nelson", age: 40 },
],
}
Output
Nils is 20 years old.
Teddy is 10 years old.
Nelson is 40 years old.