jade-email-body

0.1.1 • Public • Published

jade-email-doc

Create email bodies with backgrounds.

Read more.

How it works

Write email code in Jade, using +body for the mixin:

include ../email-body.jade
 
+body(bgcolor = '#FF0', background = "image.ext")

And get a much more intense output, voila!

<div style="background-color:#FF0;">
  <!-- [if gte mso 9]
  <v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
    <v:fill type="tile" src="image.ext" color="#FF0"></v:fill>
  </v:background>
  -->
  <table height="100%" width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td valign="top" align="left" background="image.ext">
      </td>
    </tr>
  </table>
</div>

Readme

Keywords

none

Package Sidebar

Install

npm i jade-email-body

Weekly Downloads

4

Version

0.1.1

License

BSD-2-Clause

Last publish

Collaborators

  • tbuchok