Rychillie / vtex-email-framework

VTEX Emails Development Architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VTEX Email Framework

Badge Badge Badge dependencies Status

Transactional emails development architecture

๐Ÿ“ซ Homepage

โš”๏ธ Features

  • Hot Reload
  • Partial Files
  • Inline CSS
  • Dashboard
  • Boilerplate
  • Template Engine

๐Ÿ—บ๏ธ Guide

  • Data and template file name must be the same
emails
โ”‚
โ””โ”€โ”€โ”€json
โ”‚   โ”‚   order-confirmation.json
โ”‚   โ”‚   payment-approved.json
โ””โ”€โ”€โ”€templates
    โ”‚   order-confirmation.hbs
    โ”‚   payment-approved.hbs
    โ””โ”€โ”€โ”€partials
        โ”‚   Header.hbs
        โ”‚   Shelf.hbs
  • Partials

โœ… Right

<Shelf class="partial">{{> Shelf}}</Shelf>

โŒ Wrong

<Shelf class="partial">
    {{> Shelf}}
</Shelf>

๐ŸŽฎ Commands

  • Install
yarn install
  • Development
yarn dev
  • Production
yarn build
  • Test
yarn test

๐Ÿ“š References

BEM

Handlebars

Can I Email

Emails Support

Vtex Templates

Vtex Message Center

About

VTEX Emails Development Architecture

License:MIT License


Languages

Language:Handlebars 82.3%Language:JavaScript 17.7%