1.0.9 • Published 1 year ago

@beforeyoubid/jsx-mail-core v1.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

JSXMail

jsx-mail-comparation

All the basic functioning of jsx-mail. Build or render functions directly.

Usage

// eslint-disable-next-line
const { Core } = require('@beforeyoubid/jsx-mail-core');

const core = new Core(__dirname + '/mail-app', 'dist');

core.build().then(result => {
  console.log('Build result:', result);
  core
    .render(
      'Welcome',
      {
        name: 'John Doe',
      },
      {
        lang: 'pt-BR',
      }
    )
    .then(result => {
      console.log('Render result:', result);
    });
});

Documentation

See the documentation here