Permalink
Browse files

removed header and footer from examples

  • Loading branch information...
1 parent 6ec9302 commit 4ddea7812901fd1120909c366df3264c47dfb899 @niftylettuce niftylettuce committed Apr 16, 2013
@@ -1,2 +0,0 @@
- </body>
-</html>
@@ -1 +0,0 @@
-
@@ -1,2 +0,0 @@
-<html>
- <body>
@@ -1 +0,0 @@
-
@@ -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>
@@ -1,3 +1 @@
-<% include ../header/text %>
Hi there <%= name.first %> <%= name.last %>.
-<% include ../footer/text %>
@@ -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>
@@ -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 %>
View
@@ -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;
}
@@ -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) {

0 comments on commit 4ddea78

Please sign in to comment.