https://github.com/eggheadio/egghead-fresh-emails
write react w/ mjml, generate html
https://github.com/eggheadio/egghead-fresh-emails
Last synced: 8 months ago
JSON representation
write react w/ mjml, generate html
- Host: GitHub
- URL: https://github.com/eggheadio/egghead-fresh-emails
- Owner: eggheadio
- Created: 2019-12-19T15:06:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-18T09:13:42.000Z (about 6 years ago)
- Last Synced: 2025-09-23T11:58:49.322Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 9
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mjml-react email templates
## Usage
```bash
npm install
npm start
```
and afterwards just open your browser using the link [http://localhost:3000/](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:
```bash
npm run generate
```
And you can automate things by sending the generated email to your test inbox:
```bash
npm run build
npm run generate | mail -s "$(echo -e "This is a test email\nContent-Type: text/html")" myemail@myprovider.com
```
### Syntax highlighting
Example
```
const foo = () => {}```
---
📃[mjml documentation](https://mjml.io/documentation/)
---
Based on [mjml](https://mjml.io/) and [mjml-react](https://github.com/wix-incubator/mjml-react).