email-template
a library for creating text/html email bodies
Last updated 9 years ago by jstewmon .
Repository · Original npm · Tarball · package.json
$ cnpm install email-template 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.1-1                                ...           latest (9 years ago)

2 Versions

  • 0.0.1-1                                ...           9 years ago
  • 0.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |