0.0.2 • Published 9 years ago

meelo v0.0.2

Weekly downloads
4
License
ISC
Repository
github
Last release
9 years ago

meelo

Zurb Ink email HTML template composer for #nodejs

compose beautiful emails so quickly!

http://zurb.com/ink/

Understanding

Email template have simple structure

Meelo > Container > Row > Column > Content

Install

npm install meelo --save

Usage

var meelo = require('meelo');
var mail = meelo.mail({background: '#ddd'});

var contentRow = function () {
  var row = meelo.row();
  var column = meelo.column({cssClass: 'twelve', extendedCssClass: 'text-pad'});

  column.addContent('h1 Good day, Meelo!');                 //use jade syntax
  column.addContent('<p>New updates are available!</p>');   //use plain html

  row.addColumn(column);
  return row;
};

var container = meelo.container({background: '#fff'});

container.addRow(contentRow());
mail.addContainer(container);

var html = mail.build();

Examples

see ./examples