0.2.0 • Published 6 years ago

mailchimpify v0.2.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Build Status

Mailchimpify

Mailchimp's custom attributes allows anyone to add, change or remove without touching code through their design view.

When you're using React or a module that uses it as dependency (ie: react-html-email), it will error since mc:edit isn't valid. This replaces any string that includes data-mc-edit with Mailchimp's mc:edit.

Supported attributes

data-mc-edit
data-mc-hideable
data-mc-repeatable
data-mc-variant
data-mc-label

Install

npm install --save mailchimpify

Usage

var mailchimpify = require('mailchimpify');
var div = '<div data-mc-edit="content">some text</div>';

mailchimpify(div); // <div mc:edit="content">some text</div>;

License

MIT%

0.2.0

6 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago