peryton
A simple API to send emails formatted with various templating libs.
This module also wraps nodemailer, making e-mail sending easy.
Templating engines
The following templating engines are supported. The dependencies listed are required in order to run them along with this library.
- swig,
npm install swig --save
, https://github.com/paularmstrong/swig/ - jade,
npm install jade --save
, https://github.com/visionmedia/jade
API
swig
The following example illustrates how to use peryton
with swig
template engine.
For swig
it's also possible to define custom filters:
var Email = email = Email; email;
jade
In the case of jade
, you will need to define your mixins:
engine: Email
Install
The source is available for download from GitHub. Alternatively, you can install using Node Package Manager (npm):
npm install peryton --save