Skip to content

Commit

Permalink
[misc] bad english
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Nov 11, 2010
1 parent b568754 commit 820b962
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Expand Up @@ -53,7 +53,7 @@

It uses mustache templating to do basic search and replaces.

The {{color}} {{animal}} {{adjective}} ran over the {{noun}}.
The {{color}} {{animal}} {{adverb}} ran over the {{noun}}.

### then send the mail using some simple JSON based Mustache replacement.

Expand All @@ -76,7 +76,7 @@
return arr[Math.floor(Math.random()*3)];
},
"animal": "monkey",
"adjective": "quickly",
"adverb": "quickly",
"noun": "hot lava"
},

Expand Down
1 change: 1 addition & 0 deletions lib/node_mailer.js
Expand Up @@ -222,6 +222,7 @@ exports.send = function(options, callback) {
if (err) throw err;
templateCache[options.template] = data.toString();
options.body = mustache.to_html(templateCache[options.template], options.data);
console.log(options.body);
return new Email(options, callback);
});
}
Expand Down
2 changes: 1 addition & 1 deletion templates/sample.txt
Expand Up @@ -4,4 +4,4 @@ This is a sample template of the node mailer.

It uses mustache templating to do basic search and replaces.

The {{color}} {{animal}} {{adjective}} ran over the {{noun}}.
The {{color}} {{animal}} {{adverb}} ran over the {{noun}}.

0 comments on commit 820b962

Please sign in to comment.