Skip to content
No description or website provided.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
Makefile
Readme.md
index.js
package.json

Readme.md

email-template is a simple library used to render both a text and html template for a given data context.

usage is easy:

et.createBodies({text: path.join(__dirname, 'email/success.handlebars.text')}, data, callback);

The templating engine is determined by trying to match one of the exports from conosolidate.js with the filename, so you can either include the engine in the filename or in the path. Any of these will work:

sample.ejs.text
./handlebars/sample.html
Something went wrong with that request. Please try again.