@kiste/sender-template

0.0.2 • Public • Published

@kiste/sender-template

Usage

provide first your path to templates over .env variable EMAIL_TEMPLATES_DIR_PATH

If you want to use media files in your templates, most likely you will also need to put them somewhere in internet, for this case you will need to define following .env variables:

  • EMAIL_MEDIA_HOST in case you still want to ship them out of node.js app
  • EMAIL_TEMPLATES_MEDIA_DIR_PATH
  • EMAIL_MEDIA_URL_PATH
const templater = require('@kiste/sender-template');

const html = templater(templateName, payload).compile()

Implemented template engines

Readme

Keywords

none

Package Sidebar

Install

npm i @kiste/sender-template

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

4.16 kB

Total Files

5

Last publish

Collaborators

  • zavalit