8000 GitHub - andrewright/mjml-mail-setup
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

andrewright/mjml-mail-setup

Repository files navigation

Welcome to Mail-generator

Newsletter templates building system base on MJML https://mjml.io
Documentation: https://mjml.io/documentation/
Line example: https://mjml.io/try-it-live

Run

  • Install all packages $ npm install
  • Start template watch $ npm dev
  • Check that /dist/en/ directory exist
  • Build minified versions $ npm build

NPM scripts

  • {name}:watch:dev will build html to ./target directory and will watch for all files changes. Files will be rebuilt automatically on changes save.
  • {name}:build:dev will build html to ./target directory *.html files
  • {name}:build:prod-dir build html to the special directory of the project, extension and layout
    (For example: docs:build:prod-dir script, build output to ../documents-generator-api/src/main/resources/templates/)

Attention

  1. Name of all head common components might starts from _ and have extention .mjml (example: _footer.mjml)
  2. Common components might be located in ./mjml/common/components/ 0. Local components might be located in local directory (example: ./mjml/keycloak/components/)
  3. To make strong always use <strong> tag
  4. Links might have <font color='red'> to change link color
  5. All <mj-section> can be on one level with other <mj-section>
  6. Just <mj-column> can has width property
  7. If <mj-column> has width and paddings - paddings will be included in width
  8. Popular tags (<h1>, <p>, <a>) can inherit styles from mail agents. Recommendation: D 523C on't use tags in mail layout. Otherwise use <mj-text mj-class="h1"> with attribute mj-class and styles in <mj-style>.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0