0.0.7 • Published 7 years ago

mjml-serve v0.0.7

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

Simple MJML development server

mjml-serve is a very simple command line tool for hosting .mjml files while developing. It allows you to view the email in your browser as html while developing.

Installation

npm install -g mjml-serve

Usage

mjml-serve by default will look for .mjml files in the cwd it is run from. To begin hosting files create an mjml file in your current directory.

echo "<mj-body><mj-section><mj-column><mj-text>Hello World</mj-text></mj-column></mj-section></mj-body>" > example.mjml

Then run the server

mjml-serve

And open your browser to http://localhost:5432/example.mjml

You can also specify a directory for the server to look for mjml files for

mjml-serve relative/path/to/dir/

or

mjml-serve /absolute/path/to/dir/
0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago