Comparing version 0.1.11 to 0.1.12
13
mail.js
@@ -75,6 +75,7 @@ | ||
html: | ||
'<table border="0" cellpadding="0" cellspacing="0" !style>', | ||
'<table border="0" cellpadding="0" cellspacing="0" !=class !=style>', | ||
htmlClose: | ||
'</table>', | ||
binds: { | ||
class: '', | ||
style: '' | ||
@@ -147,9 +148,5 @@ } | ||
}, | ||
html: function( scope ) { | ||
return ( | ||
'[table !=class style="width:100%"]' + | ||
'<tr>' + | ||
'<td' + scope.if( 'style', ' style="!style"' ) + '>' | ||
); | ||
}, | ||
html: '[table class="!class" style="width:100%;"]' + | ||
'<tr>' + | ||
'<td !=style>', | ||
htmlClose: | ||
@@ -156,0 +153,0 @@ '</td>' + |
{ | ||
"name": "mailjs", | ||
"version": "0.1.11", | ||
"version": "0.1.12", | ||
"description": "JavaScript HTML and text email renderer/formatter.", | ||
@@ -5,0 +5,0 @@ "main": "mail.js", |
@@ -529,2 +529,14 @@ | ||
}); | ||
it( 'should process tdiv\'s', function() { | ||
expect( | ||
mailjs.render({ | ||
src: '[tdiv class="foo"]', | ||
html: true | ||
}) | ||
).to.eql( | ||
'<table border="0" cellpadding="0" cellspacing="0" class="foo" style="width:100%;"><tr><td>' | ||
); | ||
}); | ||
}); | ||
@@ -531,0 +543,0 @@ |
38175
1110