https://github.com/crisfeit/vtex-email-framework
Transactional Emails Development Architecture
https://github.com/crisfeit/vtex-email-framework
email email-framework email-template emails framework handlebars vtex
Last synced: 4 months ago
JSON representation
Transactional Emails Development Architecture
- Host: GitHub
- URL: https://github.com/crisfeit/vtex-email-framework
- Owner: CrisFeit
- Created: 2021-01-02T21:52:05.000Z (almost 5 years ago)
- Default Branch: v4
- Last Pushed: 2024-12-14T14:43:48.000Z (10 months ago)
- Last Synced: 2025-06-20T00:18:03.413Z (4 months ago)
- Topics: email, email-framework, email-template, emails, framework, handlebars, vtex
- Language: Handlebars
- Homepage:
- Size: 543 KB
- Stars: 25
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VTEX Email Framework
[](https://help.vtex.com/tutorial/list-of-e-mail-templates-in-the-message-center--3g2S2kqBOoSGcCaqMYK2my) [](https://handlebarsjs.com/) [](https://nodejs.org) [](https://nodejs.org) [](https://www.npmjs.com/package/vtex-email-framework)
## Transactional emails development architecture
### ๐ฆ Setup
```bash
npx create-vtex-email my-emails
```### ๐ฎ Commands
| npm | yarn | pnpm |
| ----------- | --- | --- |
|`npm run dev` | `yarn dev`| `pnpm run dev`|
|`npm run build` | `yarn build`| `pnpm run build`|### โ๏ธ Features
* Sass
* Hot Reload
* Partial Files
* Inline CSS
* Dashboard
* Render Test
* Email Stylelint
* Responsive Boilerplate### ๐บ๏ธ Guide
* Data and template file name must be the same
```javascript
emails
โ
โโโโjson
โ โ order-confirmation.json
โ โ payment-approved.json
โโโโtemplates
โ order-confirmation.hbs
โ payment-approved.hbs
โโโโpartials
โ Header.hbs
โ Cart.hbs
```* Partials import
```handlebars
{{> Header}}
```### ๐ References
[BEM](http://getbem.com/naming/)
[Sass](https://sass-lang.com/guide)
[Handlebars](https://handlebarsjs.com/)
[Can I Email](https://www.caniemail.com/)
[Emails Support](https://www.campaignmonitor.com/css/)