- Make changes to the
.md
files inemails/
directory. - Run
pnpm install && pnpm export
to generate HTML files. - Upload the files
out/
directory to Campaign Monitor.
-
Email templates are defined in the
.md
files inemails/
directory. -
The
{{ wordsInCurlyBraces }}
are Liquid variables used by Campaign Monitor. -
Templates share components:
- The global footer is defined in
src/footer.ts
. - The subscriptions footer is defined in
src/subscriptions-footer.ts
. - The header is defined in
src/EmailHeader.tsx
.
- The global footer is defined in
-
All
.tsx
files in theemails/
at this point are the same and can be disregarded.- We use them to generate the HTML.
- In the future, we can also build emails with custom designs.