Permalink
Browse files

Added documentation for overriding EJS defaults

  • Loading branch information...
1 parent f459818 commit d30964b13ab4f33cf51514874a70360c3f895013 @niftylettuce niftylettuce committed Aug 7, 2012
Showing with 9 additions and 2 deletions.
  1. +9 −2 Readme.md
View
@@ -38,13 +38,20 @@ npm install email-templates-windows
5. Utilize one of the examples below for your respective email module and start sending beautiful emails!
+# EJS Custom Tags
+
+Want to use different opening and closing tags instead of the EJS's default `<%` and `%>`?.
+
+```js
+...
+emailTemplates(templatesDir, { open: '{{', closed: '}}' }, function(err, template) {
+...
+```
# Usage
Render a template for a single email or render multiple (having only loaded the template once).
-Want to use different opening and closing tags instead of the EJS's default `<%` and `%>`?. Simply add `open` and `close` properties to your `locals` object. Read the EJS documentation <a href="https://github.com/visionmedia/ejs#options" target="_blank">about tags and more options</a>.
-
```js
var path = require('path')
, templatesDir = path.join(__dirname, 'templates')

0 comments on commit d30964b

Please sign in to comment.