Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shyam-chen/mjml-starter

:e-mail: A boilerplate for building responsive HTML emails with MJML, PostHTML, and YAML in Nunjucks on Gulp.
https://github.com/shyam-chen/mjml-starter

email gulp mjml nunjucks posthtml yaml

Last synced: 4 months ago
JSON representation

:e-mail: A boilerplate for building responsive HTML emails with MJML, PostHTML, and YAML in Nunjucks on Gulp.

Awesome Lists containing this project

README

        

# Email Starter

:e-mail: A boilerplate for building responsive HTML emails.

## Prerequisites

- [Node.js](https://nodejs.org/)
- [Pnpm](https://pnpm.js.org/)

## Usage

1. Clone this repository and install its dependencies

```sh
$ git clone https://github.com/Shyam-Chen/Email-Starter email-template-builder
$ cd email-template-builder
$ pnpm install
```

2. Start a development server

Transpiles: `posthtml` -> Data (`yaml`) + `nunjucks` -> `mjml` -> `html`

```sh
$ pnpm serve
```

3. Build templates

Transpiles: `posthtml` -> `mjml` -> `html` (`nunjucks` ready)

```sh
$ pnpm build
```

4. Move templates

```sh
$ pnpm move --to=../path/to/src/templates
```

## Features

- [Gulp](https://github.com/gulpjs/gulp) - Build Tool
- [MJML](https://github.com/mjmlio/mjml) - Email Framework
- [PostHTML](https://github.com/posthtml/posthtml) - HTML Transformer
- [Nunjucks](https://github.com/mozilla/nunjucks) - Templating Engine
- [YAML](https://github.com/nodeca/js-yaml) - Mock Data