Skip to content

DoubleDor/mjml-serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

Releases

No releases published

Packages

No packages published