@ftw/email-builder
A React-based tool for building modern, responsive email templates which degrade "gracefully" in older clients.
Last updated a year ago by danmartens .
MIT · Original npm · Tarball · package.json
$ cnpm install @ftw/email-builder 
SYNC missed versions from official npm registry.

Email Builder

A React-based tool for building modern, responsive email templates which degrade "gracefully" in older clients.

Getting Started

  1. Create a "package.json" file (yarn init)

  2. Run yarn add "@ftw/email-builder" "react@>=16.3 <17" "react-dom@>=16.3 <17"

  3. Add a "start" script to your "package.json":

    {
      "scripts": {
        "start": "email-builder develop"
      }
    }
    
  4. Create an "emails/EMAIL_NAME" directory and add an index.js file as an entry point for your email:

    // emails/newsletter/index.js
    
    import * as React from 'react';
    import { Email, Section, renderEmail } from '@ftw/email-builder';
    
    function Newsletter() {
      return (
        <Email>
          <Section align="center">
            <Section
              maxWidth={650}
              padding={{ top: 50, bottom: 80, left: 20, right: 20 }}
            >
              Hello world!
            </Section>
          </Section>
        </Email>
      );
    }
    
    renderEmail(Newsletter);
    
  5. Run yarn start in your project directory and open http://localhost:5000 in your browser.

Current Tags

  • 0.0.25                                ...           latest (a year ago)

24 Versions

  • 0.0.25                                ...           a year ago
  • 0.0.24                                ...           a year ago
  • 0.0.23                                ...           a year ago
  • 0.0.22                                ...           a year ago
  • 0.0.21                                ...           a year ago
  • 0.0.20                                ...           2 years ago
  • 0.0.19                                ...           2 years ago
  • 0.0.18                                ...           2 years ago
  • 0.0.17                                ...           2 years ago
  • 0.0.16                                ...           2 years ago
  • 0.0.15                                ...           2 years ago
  • 0.0.13                                ...           2 years ago
  • 0.0.12                                ...           2 years ago
  • 0.0.11                                ...           2 years ago
  • 0.0.10                                ...           2 years ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
  • 0.0.2                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 25
Last Day 0
Last Week 24
Last Month 0
Dependencies (29)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |