Starter base for Email templating with Gulp, MJML and Nunjucks. It has a Gulp-powered build system with these features:
- MJML engine
- Partials and templates with Nunjucks
- Inject data with YAML
- Built-in BrowserSync server
- MJML default templates (Basic and Newsletter)
Now clone this repository
git clone https://github.com/jpagano/mjml-starter-base mjml-starter-baseThen open the folder in your command line, and install the needed dependencies:
cd mjml-starter-base
npm installFinally, run npm start to run Gulp. Your finished templates will be created in a folder called dist, viewables at this URL:
npm starthttp://localhost:8000- HTML minifier and beautifier
- Image compression