Skip to content

Browserified version of mjml tweaked to run in the java nashorn javascript engine

Notifications You must be signed in to change notification settings

msievers/mjml-nashorn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Try it out

$ 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

About

Browserified version of mjml tweaked to run in the java nashorn javascript engine

Resources

Stars

Watchers

Forks

Packages

No packages published