1.0.25 • Published 3 years ago

michml v1.0.25

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

michml

MichML

Build Status

Create email template with Nunjucks syntax and MJML

Installation

yarn add michml

npm install michml

How to use

You can see example in 'examples' folder.

How to use in TypeScript

const michel = new MichML();
const html = michel.pathToHTML(__dirname + "/templates/template.mjml", { template_data } })

How to use in JavaScript

const michML_module = require('michml')
const michel = new michML_module.MichML()
const html = michel.pathToHTML(__dirname + "/templates/template.mjml", { template_data } })

Configuration

You can configure MJML to HTML transformation

const options = {
    // Option to beautify the HTML output (default : false )
    beautify: boolean;
    // Option to keep comments in the HTML output ( default : true )
    keepComments: boolean;
    // Option to minify the HTML output ( default : false )
    minify: boolean;
    // Available values for the validator: 'strict', 'soft', 'skip' ( defaullt : 'soft' )
    validationLevel: "strict" | "soft" | "skip";
}
const michel = new MichML(options)
1.0.25

3 years ago

1.0.24

4 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago