Comparing version 0.1.14 to 0.1.15
@@ -129,3 +129,3 @@ | ||
'<td align="center" width="[pixels=!width]" height="[pixels=!height]" bgcolor="!backgroundColor" style="!:color;display:block;">' + | ||
'<a !=href style="color:#ffffff;!:fontSize;font-weight:bold;font-family:sans-serif;text-decoration:none;line-height:!height;width:100%;display:inline-block">!label</a>' + | ||
'<a !=href style="!:color;!:fontSize;font-weight:bold;font-family:sans-serif;text-decoration:none;line-height:!height;width:100%;display:inline-block">!label</a>' + | ||
'</td>' + | ||
@@ -633,3 +633,3 @@ '</tr>' + | ||
var assignmentBind, | ||
var assignmentBind = undefined, | ||
delim = src.substring( si, si + 1 ); | ||
@@ -636,0 +636,0 @@ if ( delim === '=' || delim === ':' ) { |
{ | ||
"name": "mailjs", | ||
"version": "0.1.14", | ||
"version": "0.1.15", | ||
"description": "JavaScript HTML and text email renderer/formatter.", | ||
@@ -5,0 +5,0 @@ "main": "mail.js", |
@@ -579,4 +579,19 @@ | ||
}); | ||
it( 'should support buttons', function() { | ||
expect( | ||
mailjs.render({ | ||
src: '[button label="View" href="http://apple.com"]', | ||
html: true | ||
}) | ||
).to.eql( | ||
'<table border="0" cellpadding="0" cellspacing="0"><tr><td align="center" width="300" height="40" bgcolor="#d62828" style="color:#ffffff;display:block;">' + | ||
'<a href="http://apple.com" style="color:#ffffff;font-size:16px;font-weight:bold;font-family:sans-serif;text-decoration:none;line-height:40px;width:100%;display:inline-block">View</a>' + | ||
'</td></tr></table>' | ||
); | ||
}); | ||
}); | ||
describe( 'generation with boilerplate', function() { | ||
@@ -583,0 +598,0 @@ before( function() { |
39956
1161