The sample templates for emails are located in templated_email
.
The source
directory contains MJML templates. Those .mjml
files need to be compiled to HTML and put into the compiled
directory before they can be used.
To compile the emails you need to have Node.js 10.x or later installed. Refer to the Node.js installation instructions.
Saleor uses Handlebars as a templating language.
You also need to install Saleor's frontend dependencies first. To do that run:
npm install
To compile the emails run:
npm run build-emails