No description
  • JavaScript 100%
Find a file
2018-05-13 22:12:29 -04:00
components replace hr with section-body border 2018-05-13 22:12:29 -04:00
lib intial 2018-05-07 19:07:07 -04:00
src replace hr with section-body border 2018-05-13 22:12:29 -04:00
.babelrc intial 2018-05-07 19:07:07 -04:00
.editorconfig intial 2018-05-07 19:07:07 -04:00
.eslintrc intial 2018-05-07 19:07:07 -04:00
.gitignore intial 2018-05-07 19:07:07 -04:00
.mjmlconfig intial 2018-05-07 19:07:07 -04:00
gulpfile.babel.js remove hr 2018-05-13 22:06:51 -04:00
LICENSE intial 2018-05-07 19:07:07 -04:00
package-lock.json intial 2018-05-07 19:07:07 -04:00
package.json add readme 2018-05-13 22:06:50 -04:00
README.md add readme 2018-05-13 22:06:50 -04:00

HashiCorp MJML Email Templates

This repo contains Hashicorp Emails and a set of custom components for hashicorp Emails

Setup

after cloning this repo, cd to the base and run npm i

Running the suite

Create a new .mjml file in the ./src directory. For example

src/2018_05_11_hashibits_june.mjml

Note the naming structure of YY_MM_DD_Subject.mjml. Organizing source files this way will make them easy to find in the future.

Run TARGET=./src/2018_05_11_hashibits_june.mjml npm run start

This will create a watcher that compiles a new .html from MJML in the dist directory.

You may open this file in your browser and refresh to see changes as long as the watcher is running. When you are happy with the output, run

TARGET=./src/2018_05_11_hashibits_june.mjml npm run build

About the MJML framework

MJML is a framework for build Email. More info available here: https://mjml.io/documentation/

MJML Components

The best reference for built-in components and their options are available on github

Custom components

An extensive Demo and a list of custom hashicorp components and their options can be found in src/_components.mjml