$ git clone https://github.com/msievers/mjml-nashorn.git
$ cd mjml-nashorn
$ jjs
jjs> load("./dist/mjml.js")
jjs> var result = global.mjml.mjml2html('<mjml> <mj-body> <mj-container> <mj-section> <mj-column> <mj-image width=\"100\" src=\"/assets/img/logo-small.png\"></mj-image> <mj-divider border-color=\"#F45E43\"></mj-divider> <mj-text font-size=\"20px\" color=\"#F45E43\" font-family=\"helvetica\">Hello World</mj-text> </mj-column> </mj-section> </mj-container> </mj-body> </mjml>')
jjs> result["html"] // gives you the generated html
-
Notifications
You must be signed in to change notification settings - Fork 1
msievers/mjml-nashorn
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Browserified version of mjml tweaked to run in the java nashorn javascript engine
Resources
Stars
Watchers
Forks
Packages 0
No packages published