Giter Site home page Giter Site logo

mjml-serve's Introduction

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/

mjml-serve's People

Contributors

frenchie4111 avatar

Stargazers

Zach Williams avatar Alexander Raunsholt avatar Francois-Guillaume Ribreau avatar  avatar

Watchers

James Cloos avatar Kruk avatar  avatar Gregg Golembeski avatar  avatar  avatar day kay avatar Trini  avatar João Carvalho avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.