MJML support for JSTransformers
HTML JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.editorconfig
.gitignore
.travis.yml
HISTORY.md
LICENSE.md
README.md
index.js
package.json

README.md

jstransformer-mjml

MJML support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

Installation

npm install jstransformer-mjml

API

var mjml = require('jstransformer')(require('jstransformer-mjml'))

var input = `<mj-body>
  <mj-section>
    <mj-column>
      <mj-text>
        Hello World!
      </mj-text>
    </mj-column>
  </mj-section>
</mj-body>`

mjml.render(input).body
//=> The repsonsive HTML generated

License

MIT