📖
Genèse
  • Quick Start
  • Templates
    • Template
    • Injection
    • Conditional rendering
    • Frontmatter
  • Generators
    • Generator
    • Prompt
Powered by GitBook
On this page
  1. Generators

Generator

The generators are contained in the _templates folder (of the current working directory).

In the project example, we have one available generator named "email:new".

The templates should always end with the "*.t" file extension, their names however don't matter.

_templates/
  email/
    new/
      html.t
      text.t
      prompt.yaml
app/
  index.js
package.json

You can execute this command with:

genese email:new

You'll be prompted for the necessary variables and the files will be created.

PreviousFrontmatterNextPrompt

Last updated 3 years ago