- Put templates into "templates" folder. MJML+Liquid templates with .mjml extension and pure Liquid templates with .html extension are supported
- Put variables for each template in json format into "data" folder. File names should match (e.g. for "example.mjml" you should put "example.json")
- Run
yarn start
to render all templates oryarn start <template-name>
to render one.
koochr / mjml-tester Goto Github PK
View Code? Open in Web Editor NEWSimple node script for rendering and previewing Liquid+MJML templates