<commit_before># node-email-templates [![Build Status](https://travis-ci.org/niftylettuce/node-email-templates.png?branch=master)](https://travis-ci.org/niftylettuce/node-email-templates) [![NPM version](https://badge.fury.io/js/email-templates.png)](http://badge.fury.io/js/email-templates)

Node.js module for rendering beautiful emails with your template engine and CSS pre-processor of choice coupled with email-friendly inline CSS using [juice][2].

[jade]: https://github.com/visionmedia/jade
[swig]: https://github.com/paularmstrong/swig
[handlebars]: https://github.com/wycats/handlebars.js
[less]: http://lesscss.org/
[sass]: http://sass-lang.com/
[stylus]: http://learnboost.github.io/stylus/
[styl]: https://github.com/visionmedia/styl

View documentation here <http://documentup.com/niftylettuce/node-email-templates>.

Follow [@niftylettuce](http://twitter.com/niftylettuce) on Twitter for updates.

Like this module?  Check out [express-cdn](https://github.com/niftylettuce/express-cdn)!

<table>
<thead>
<tr>
<th>The Rebel's Guide to Email Marketing</th>
<th>Modern HTML Email</th>
<th>Email Marketing By the Numbers</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="http://goo.gl/JplO3b"><img src="http://ecx.images-amazon.com/images/I/51pDPeVKqqL._SL110_.jpg" /></a></td>
<td><a href="http://goo.gl/nKk41m"><img src="http://ecx.images-amazon.com/images/I/41uTBv9KbhL._SL110_.jpg" /></a></td>
<td><a href="http://goo.gl/d1b82E"><img src="http://ecx.images-amazon.com/images/I/51RX-csFsRL._SL110_.jpg" /></a></td>
</tr>
</tbody>
</table>

## Index

* [Email Templates](#email-templates)
* [Installation](#installation)
* [Quick Start](#quick-start)
* [EJS Custom Tags](#ejs-custom-tags)
* [Examples](#examples)
    * [Basic](#basic)
    * [Nodemailer](#nodemailer)
    * [Postmark](#postmark)
* [Lazyweb Requests](#lazyweb-requests)
* [Changelog](#changelog)
* [Contributors](#contributors)
* [License](#license)


## Email Templates

For professional and customizable email templates, please visit <https://github.com/mailchimp/Email-Blueprints>.

#### Supported Template Engines
 * [ejs][1]
 * [jade][jade]
 * [swig][swig]
 * [handlebars][handlebars]

#### Supported CSS Pre-processors
 * [less][less]
 * [sass][sass]
 * [stylus][stylus]
 * [styl][styl]

## Prerequisites
This module depends on [jsdom](https://github.com/tmpvar/jsdom) which requires the ability to compile C++ on your localhost. Before installing, please verify that you have the prerequisites installed for your OS.
 * [OSX requirements](https://github.com/tmpvar/jsdom#mac)
 * [Linux requirements](https://github.com/tmpvar/jsdom#linux)

#### Windows Users
Developing on osx/linux is recommended but if you only have access to a Windows machine you can either:
  1. Use [vagrant](http://www.vagrantup.com/) to create a linux dev environment (recommended)
  2. Follow the [Windows installation guide](https://github.com/brianmcd/contextify/wiki/Windows-Installation-Guide) for contextify

## Installation
```bash
npm install email-templates
```<commit_msg>Updated README to include emblem in supported template engines<commit_after># node-email-templates [![Build Status](https://travis-ci.org/niftylettuce/node-email-templates.png?branch=master)](https://travis-ci.org/niftylettuce/node-email-templates) [![NPM version](https://badge.fury.io/js/email-templates.png)](http://badge.fury.io/js/email-templates)

Node.js module for rendering beautiful emails with your template engine and CSS pre-processor of choice coupled with email-friendly inline CSS using [juice][2].

[jade]: https://github.com/visionmedia/jade
[swig]: https://github.com/paularmstrong/swig
[handlebars]: https://github.com/wycats/handlebars.js
[emblem]: https://github.com/machty/emblem.js
[less]: http://lesscss.org/
[sass]: http://sass-lang.com/
[stylus]: http://learnboost.github.io/stylus/
[styl]: https://github.com/visionmedia/styl

View documentation here <http://documentup.com/niftylettuce/node-email-templates>.

Follow [@niftylettuce](http://twitter.com/niftylettuce) on Twitter for updates.

Like this module?  Check out [express-cdn](https://github.com/niftylettuce/express-cdn)!

<table>
<thead>
<tr>
<th>The Rebel's Guide to Email Marketing</th>
<th>Modern HTML Email</th>
<th>Email Marketing By the Numbers</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="http://goo.gl/JplO3b"><img src="http://ecx.images-amazon.com/images/I/51pDPeVKqqL._SL110_.jpg" /></a></td>
<td><a href="http://goo.gl/nKk41m"><img src="http://ecx.images-amazon.com/images/I/41uTBv9KbhL._SL110_.jpg" /></a></td>
<td><a href="http://goo.gl/d1b82E"><img src="http://ecx.images-amazon.com/images/I/51RX-csFsRL._SL110_.jpg" /></a></td>
</tr>
</tbody>
</table>

## Index

* [Email Templates](#email-templates)
* [Installation](#installation)
* [Quick Start](#quick-start)
* [EJS Custom Tags](#ejs-custom-tags)
* [Examples](#examples)
    * [Basic](#basic)
    * [Nodemailer](#nodemailer)
    * [Postmark](#postmark)
* [Lazyweb Requests](#lazyweb-requests)
* [Changelog](#changelog)
* [Contributors](#contributors)
* [License](#license)


## Email Templates

For professional and customizable email templates, please visit <https://github.com/mailchimp/Email-Blueprints>.

#### Supported Template Engines
 * [ejs][1]
 * [jade][jade]
 * [swig][swig]
 * [handlebars][handlebars]
 * [emblem][emblem]

#### Supported CSS Pre-processors
 * [less][less]
 * [sass][sass]
 * [stylus][stylus]
 * [styl][styl]

## Prerequisites
This module depends on [jsdom](https://github.com/tmpvar/jsdom) which requires the ability to compile C++ on your localhost. Before installing, please verify that you have the prerequisites installed for your OS.
 * [OSX requirements](https://github.com/tmpvar/jsdom#mac)
 * [Linux requirements](https://github.com/tmpvar/jsdom#linux)

#### Windows Users
Developing on osx/linux is recommended but if you only have access to a Windows machine you can either:
  1. Use [vagrant](http://www.vagrantup.com/) to create a linux dev environment (recommended)
  2. Follow the [Windows installation guide](https://github.com/brianmcd/contextify/wiki/Windows-Installation-Guide) for contextify

## Installation
```bash
npm install email-templates
```
{'fraction_non_alphanumeric': 0.17751574866742045, 'fraction_numerical': 0.008399289290906154, 'mean_word_length': 5.229376257545272, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 27, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4834939', 'n_tokens_mistral': 2251, 'n_tokens_neox': 2136, 'n_words': 437}