Template
A genese
template is powered by Twig with a Frontmatter header.
In this example, a file app/emails/xxx.html
will be generated according to your parameters.
Header
The Frontmatter section is delimited by ---
at the top of the template.
It defines the template metadata in the YAML format.
You can find a complete reference here.
Body
The body of the template contains whatever content you need to generate.
Just keep in mind that it's processed by Twig.
So in the case you need to generate some Twig templates, remember to escape some brackets.
You can find the documentation here.
Last updated