Skip to content

Commit 820b962

Browse files
committed
[misc] bad english
1 parent b568754 commit 820b962

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
It uses mustache templating to do basic search and replaces.
5555

56-
The {{color}} {{animal}} {{adjective}} ran over the {{noun}}.
56+
The {{color}} {{animal}} {{adverb}} ran over the {{noun}}.
5757

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

@@ -76,7 +76,7 @@
7676
return arr[Math.floor(Math.random()*3)];
7777
},
7878
"animal": "monkey",
79-
"adjective": "quickly",
79+
"adverb": "quickly",
8080
"noun": "hot lava"
8181
},
8282

lib/node_mailer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ exports.send = function(options, callback) {
222222
if (err) throw err;
223223
templateCache[options.template] = data.toString();
224224
options.body = mustache.to_html(templateCache[options.template], options.data);
225+
console.log(options.body);
225226
return new Email(options, callback);
226227
});
227228
}

templates/sample.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ This is a sample template of the node mailer.
44

55
It uses mustache templating to do basic search and replaces.
66

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

0 commit comments

Comments
 (0)