Skip to content

Commit

Permalink
removed header and footer from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Apr 16, 2013
1 parent 6ec9302 commit 4ddea78
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 20 deletions.
2 changes: 0 additions & 2 deletions examples/templates/footer/html.ejs

This file was deleted.

1 change: 0 additions & 1 deletion examples/templates/footer/text.ejs

This file was deleted.

2 changes: 0 additions & 2 deletions examples/templates/header/html.ejs

This file was deleted.

1 change: 0 additions & 1 deletion examples/templates/header/text.ejs

This file was deleted.

4 changes: 1 addition & 3 deletions examples/templates/newsletter/html.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
<% include ../header/html %>
<h1>Hi there <%= name.first %> <%= name.last %></h1>
<% include ../footer/html %>
<h1>Hi there <%= name.first %> <%= name.last %></h1>
2 changes: 0 additions & 2 deletions examples/templates/newsletter/text.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
<% include ../header/text %>
Hi there <%= name.first %> <%= name.last %>.
<% include ../footer/text %>
8 changes: 3 additions & 5 deletions examples/templates/pasta-dinner/html.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<% include ../header/html %>
<h1>You are invited to our weekly pasta dinner!</h1>
<h2>This week's pasta is: <%= pasta %></h2>
<h3>We hope to see you there!</h3>
<% include ../footer/html %>
<h1>You are invited to our weekly pasta dinner!</h1>
<h2>This week's pasta is: <%= pasta %></h2>
<h3>We hope to see you there!</h3>
2 changes: 0 additions & 2 deletions examples/templates/pasta-dinner/text.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<% include ../header/text %>
You are invited to join our weekly pasta dinner!

This week's pasta is: <%= pasta %>

We hope to see you there!
<% include ../footer/text %>
3 changes: 1 addition & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var EmailTemplate = function(templateDirectory, defaults, done) {
bufferType = that.bufferType
}

if (typeof html === 'function') {
if (typeof html === 'function') {
callback = html;
html = that.html;
}
Expand All @@ -64,7 +64,6 @@ var EmailTemplate = function(templateDirectory, defaults, done) {
locals.filename = path.join(templatePath, 'text.ejs');
text = (text) ? ejs.render(text, locals) : '';
if (stylesheet) html = juice(html, stylesheet);


// return a compressed buffer
if (isBuffer) {
Expand Down

0 comments on commit 4ddea78

Please sign in to comment.