Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 892 Bytes

README.md

File metadata and controls

41 lines (26 loc) · 892 Bytes

mjml-react email templates

Usage

npm install
npm start

and afterwards just open your browser using the link http://localhost:3000/.

The http server will listen and restart upon each change inside src folder. You just need to refresh a browser window manually.

Running from command line

Generate email.html in root directory:

npm run generate

And you can automate things by sending the generated email to your test inbox:

npm run build
npm run generate | mail -s "$(echo -e "This is a test email\nContent-Type: text/html")" [email protected]

Syntax highlighting

Example <MjmlText><pre>const foo = () => {}</pre></MjmlText>


📃mjml documentation


Based on mjml and mjml-react.