[
  {
    "path": ".gitignore",
    "content": "node_modules\nbuild.zip\n"
  },
  {
    "path": "README.md",
    "content": "# A Gulp Workflow for Building HTML Emails\n\n\n![Sample Email Template ](screenshot.png)\n\nThis is a workflow for building HTML emails using Gulp. It comes with a default MailChimp-supported template.\n\nWhat it does -\n\n1. Builds HTML email from templates and partials\n2. Compiles SCSS to CSS\n3. Inlines the `inline.css` file and embeds the `embedded.css` file\n4. Generates a preview of emails\n5. Creates a zip of the build directory for upload (optional)\n\n\n\n\n## Getting Started\n\n\n#### 1. Install dependencies\n\nThis workflow requires the following dependencies -\n\n- Node.js with npm ([Install](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager))\n- Gulp.js (Install with `npm install gulp`)\n\n\n#### 2. Clone this repository\n\n\n```\ngit clone https://github.com/ireade/gulp-email-workflow.git\ncd gulp-email-workflow\n```\n\nOr [download as a ZIP](https://github.com/ireade/gulp-email-workflow/archive/master.zip).\n\n\n\n\n#### 3. Install packages\n\n```\nnpm install\n```\n\n\n#### 4. Start build\n\n```\nnpm start\n```\n\nThe compiled and inlined output email will be in the `build/` directory. Can be previewed in browser at `http://localhost:8000`\n\n\n\n\n## How to use\n\n#### Creating templates\n\n[Nunjucks](https://mozilla.github.io/nunjucks/) is used for compiling template files to HTML.\n\nTemplates are stored in `src/templates/` and partials in `src/templates/partials`. To create a template, create a file in the templates directory with the `.nunjucks` file extension. \n\nTo include a partial in your template, use the following syntax -\n\n\n```\n{% include \"partials/PARTIAL_FILE_NAME.nunjucks\" %}\n```\n\nTo define a block of dynamic content to be replaced by the email file, use the following syntax -\n\n```\n{% block CUSTOM_BLOCK_NAME %}{% endblock %}\n```\n\n\n#### Creating emails from templates\n\nTo create an email based off a template file, create a new file in the `src/emails/` directory (also with the `.nunjucks` file extension).\n\nSpecify which template to use using the following syntax -\n\n```\n{% extends \"TEMPLATE_NAME.nunjucks\" %}\n```\n\nTo define the contents of a dynamic content block, use the following syntax -\n\n```\n{% block CUSTOM_BLOCK_NAME %} \nContent goes here\n{% endblock %}\n```\n\n\n#### Working with global data\n\nGlobal data is stored in the `src/data` directory as JSON files. Include new data files in the config section at the top of the `gulpfile.js` - \n\n```javascript\nvar globalData = {\n    DATA_NAME_1: require('./src/data/FILE_NAME_1.json'),\n    DATA_NAME_2: require('./src/data/FILE_NAME_2.json')\n};\n\n```\n\nFor example -\n\n```javascript\nvar globalData = {\n    mailchimp: require('./src/data/mailchimp.json')\n};\n\n```\n\n\n\n\n#### CSS\n\nSASS files are stored in the `src/sass/` directory. There are two main SASS files -\n\n- `inline.scss` for styles you w Liant to be inlined to their elements\n- `embedded.scss` for styles that shouldn't be inlined. These will be inlcluded within a `<style>` element in the `<head>`\n\nYou can create subdirectories within the SASS folder to hold any partials. Make sure to precede the name of a partial with an underscore, e.g. `_reset.scss`.\n\n\n\n#### Generating the zip file\n\nYou can also generate a zip file of the `build` directory for export. You can do this by running -\n\n```\nnpm run zip\n```\n\nAlternatively, you can add it to the default and watch gulp tasks to have it generated automatically.\n\n\n## Footnotes\n\n- Created by [Ire Aderinokun](http://ireaderinokun.com)\n- Contributions by [Zac Wasielewski](https://github.com/zacwasielewski)\n- [MIT License](https://github.com/ireade/gulp-email-workflow/blob/master/license.txt)\n\n\n"
  },
  {
    "path": "build/css/embedded.css",
    "content": "#template-content a:link,#template-content a:visited,#template-content a.yshortcuts{color:#000;font-weight:normal;text-decoration:underline}#template-content h2{margin-top:30px;margin-bottom:20px}#template-content h3{margin-top:30px;margin-bottom:10px}#template-content img{display:inline;height:auto;width:100%}#template-content p{margin:0 0 20px}#template-content pre{display:block;width:90%;overflow-x:scroll;background-color:#F5F5F5;padding:15px}#template-content code{background-color:#F5F5F5}#template-content blockquote{margin:0 0 10px;border-left:5px solid #F5F5F5;padding:5px 10px;font-style:italic}\n"
  },
  {
    "path": "build/css/inline.css",
    "content": "/* RESET */\nbody {\n  margin: 0;\n  padding: 0;\n  width: 100%;\n  height: 100% !important;\n}\n\nimg {\n  border: 0;\n  height: auto;\n  line-height: 100%;\n  outline: none;\n  text-decoration: none;\n  max-width: 100%;\n}\n\ntable {\n  border-collapse: collapse !important;\n}\n\n/* CLIENT SPECIFIC STYLES */\n/* Force Outlook to provide a \"view in browser\" message */\n#outlook a {\n  padding: 0;\n}\n\n.ReadMsgBody {\n  width: 100%;\n}\n\n.ExternalClass {\n  width: 100%;\n  line-height: 100%;\n}\n\n.ExternalClass p,\n.ExternalClass span,\n.ExternalClass font,\n.ExternalClass td,\n.ExternalClass div {\n  line-height: 100%;\n}\n\nbody, table, td, p, a, li, blockquote {\n  -webkit-text-size-adjust: 100%;\n  -ms-text-size-adjust: 100%;\n}\n\n/* Remove spacing between tables in Outlook 2007 and up */\ntable, td {\n  mso-table-lspace: 0pt;\n  mso-table-rspace: 0pt;\n}\n\n/* Allow smoother rendering of resized image in Internet Explorer */\nimg {\n  -ms-interpolation-mode: bicubic;\n}\n\nbody {\n  background-color: #F5F5F5;\n}\n\na {\n  color: #000;\n}\n\n#body-container {\n  width: 100%;\n  max-width: 600px;\n  margin: 20px auto;\n}\n\n/* **********************\n\n\tPreheader\n\n ********************** */\n#template-preheader td {\n  padding: 15px 10px;\n  font-family: \"Helvetica Neue\", Helvetica, \"Arial\", sans-serif;\n  font-style: italic;\n  color: #606060;\n  font-size: 13px;\n}\n\n#template-preheader td:last-child {\n  text-align: right;\n}\n\n/* **********************\n\n\tMain Content\n\n ********************** */\n#template-content {\n  background-color: #fff;\n  box-shadow: 2px 2px 3px rgba(150, 150, 150, 0.2);\n}\n\n#template-content-header {\n  text-align: center;\n  position: relative;\n}\n\n#template-content-header td {\n  background-color: #ffdb3a;\n  padding: 20px 15px;\n  font-family: \"Helvetica Neue\", Helvetica, \"Arial\", sans-serif;\n}\n\n.email-title {\n  line-height: 120%;\n  color: #000;\n  font-size: 24px;\n  font-weight: 700;\n  text-decoration: none;\n}\n\n.email-subtitle {\n  font-size: 16px;\n}\n\n/* */\n#template-content-content {\n  width: 90%;\n  max-width: 560px;\n  text-align: left;\n  font-family: \"Helvetica Neue\", Helvetica, \"Arial\", sans-serif;\n  font-weight: 400;\n  font-size: 16px;\n  line-height: 150%;\n  margin: 30px 0;\n}\n\n/* */\n#template-content-footer tr {\n  background-color: #f0f0f0;\n}\n\n#template-content-footer td {\n  padding: 20px 15px;\n  font-family: \"Helvetica Neue\", Helvetica, \"Arial\", sans-serif;\n  font-weight: 400;\n  line-height: 125%;\n  font-size: 15px;\n}\n\n/* **********************\n\n\tFooter\n\n ********************** */\n#template-footer td {\n  font-family: \"Helvetica Neue\", Helvetica, \"Arial\", sans-serif;\n  color: #606060;\n  font-size: 11px;\n  line-height: 150%;\n  text-align: center;\n  padding: 30px 10px 20px;\n}\n\n#template-footer p {\n  display: block;\n  margin-bottom: 15px;\n}\n"
  },
  {
    "path": "build/index.html",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n  <meta property=\"og:type\" content=\"article\">\n  <meta property=\"og:title\" content=\"\">\n  <meta property=\"og:url\" content=\"\">\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n\n  <title>*|MC:SUBJECT|*</title>\n\n   \n  <style type=\"text/css\">#template-content a:link,#template-content a:visited,#template-content a.yshortcuts{color:#000;font-weight:normal;text-decoration:underline}#template-content h2{margin-top:30px;margin-bottom:20px}#template-content h3{margin-top:30px;margin-bottom:10px}#template-content img{display:inline;height:auto;width:100%}#template-content p{margin:0 0 20px}#template-content pre{display:block;width:90%;overflow-x:scroll;background-color:#F5F5F5;padding:15px}#template-content code{background-color:#F5F5F5}#template-content blockquote{margin:0 0 10px;border-left:5px solid #F5F5F5;padding:5px 10px;font-style:italic}\n</style>\n</head>\n<body leftmargin=\"0\" marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\" offset=\"0\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; background-color: #F5F5F5; height: 100% !important; margin: 0; padding: 0; width: 100%;\">\n\n    <div itemscope=\"\" itemtype=\"http://schema.org/EmailMessage\">\n      <div itemprop=\"publisher\" itemscope=\"\" itemtype=\"http://schema.org/Organization\">\n        <meta itemprop=\"name\" content=\"*|LIST:COMPANY|*\">\n        <link itemprop=\"url\" content=\"*|LIST:URL|*\">\n      </div>\n      <div itemprop=\"about\" itemscope=\"\" itemtype=\"http://schema.org/Offer\"></div>\n    </div>\n<center id=\"body-container\" style=\"margin: 20px auto; max-width: 600px; width: 100%;\">\n\n  <!-- PREHEADER //////////////// -->\n  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"template-preheader\" width=\"100%\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; border-collapse: collapse !important; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\">\n    <tr>\n      <td mc:edit=\"preheader_content01\" valign=\"top\" width=\"50%\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #606060; font-family: 'Helvetica Neue', Helvetica, 'Arial', sans-serif; font-size: 13px; font-style: italic; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 15px 10px;\">\n           \nA gulp workflow for building HTML emails\n\n      </td>\n      <td mc:edit=\"preheader_content02\" valign=\"top\" width=\"50%\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #606060; font-family: 'Helvetica Neue', Helvetica, 'Arial', sans-serif; font-size: 13px; font-style: italic; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 15px 10px; text-align: right;\">\n          <a href=\"*|ARCHIVE|*\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #000;\">View this email in your browser</a>\n      </td>\n    </tr>\n  </table>\n\n\n  <!-- START TEMPLATE CONTENT //////////////// -->\n  <center id=\"template-content\" style=\"background-color: #fff; box-shadow: 2px 2px 3px rgba(150,150,150,0.2);\">\n\n    <!-- EMAIL HEADER -->\n    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"template-content-header\" width=\"100%\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; border-collapse: collapse !important; mso-table-lspace: 0pt; mso-table-rspace: 0pt; position: relative; text-align: center;\">\n      <tr>\n        <td align=\"center\" valign=\"top\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; background-color: #ffdb3a; font-family: 'Helvetica Neue', Helvetica, 'Arial', sans-serif; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 20px 15px;\">\n            <h1 mc:edit=\"email_title\" class=\"email-title\" style=\"color: #000; font-size: 24px; font-weight: 700; line-height: 120%; text-decoration: none;\">\n             \nGulp Email Workflow\n\n            </h1>\n            <p mc:edit=\"email_subtitle\" class=\"email-subtitle\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; font-size: 16px;\">\n             \nBuild Better Emails\n\n            </p>\n        </td>\n      </tr>\n    </table>\n\n\n    <!-- EMAIL CONTENT -->\n    <div mc:edit=\"body\" id=\"template-content-content\" style=\"font-family: 'Helvetica Neue', Helvetica, 'Arial', sans-serif; font-size: 16px; font-weight: 400; line-height: 150%; margin: 30px 0; max-width: 560px; text-align: left; width: 90%;\">\n       \n<p style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\"><a href=\"https://github.com/ireade/gulp-email-workflow\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #000;\">Gulp Email Workflow</a> is a simple workflow for building HTML emails using Gulp.js. Lorem Khaled Ipsum is a major key to success. Find peace, life is like a water fall, you’ve gotta flow. They don’t want us to win. Wraith talk. Cloth talk. </p>\n\n<h2>Sample Content</h2>\n\n<h3>A code block</h3>\n\n<pre><code class=\"language-css\">.hg { \n  display: grid; \n  grid-template-areas: \"header header header\" \n\t\t       \"navigation main ads\" \n\t\t       \"footer footer footer\";\n  grid-template-columns: 150px 1fr 150px; \n  grid-template-rows: 100px 1fr 30px; \n  min-height: 100vh; \n}</code></pre>\n\n<h3>An unordered list</h3>\n\n<ul>\n\t<li style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">List item one</li>\n\t<li style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">List item two</li>\n\t<li style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">List item three</li>\n</ul>\n\n<h3>An ordered list</h3>\n\n<ol>\n\t<li style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">List item one</li>\n\t<li style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">List item two</li>\n\t<li style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">List item three</li>\n</ol>\n\n<h3>A block quote</h3>\n\n<blockquote style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;\">\n\tThe first of the month is coming, we have to get money, we have no choice. \n</blockquote>\n\n\n    </div>\n\n\n    <!-- EMAIL FOOTER -->\n    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"template-content-footer\" width=\"100%\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; border-collapse: collapse !important; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\">\n      <tr style=\"background-color: #f0f0f0;\">\n        <td align=\"center\" valign=\"top\" mc:edit=\"email_footer\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; font-family: 'Helvetica Neue', Helvetica, 'Arial', sans-serif; font-size: 15px; font-weight: 400; line-height: 125%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 20px 15px;\">\n             \nThank you for reading!\n\n        </td>\n      </tr>\n    </table>\n\n  </center>\n  <!-- END TEMPLATE CONTENT //////////////// -->\n\n\n  <!-- TEMPLATE FOOTER //////////////// -->\n  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" id=\"template-footer\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; border-collapse: collapse !important; mso-table-lspace: 0pt; mso-table-rspace: 0pt;\">\n    <tr>\n        <td align=\"center\" valign=\"top\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #606060; font-family: 'Helvetica Neue', Helvetica, 'Arial', sans-serif; font-size: 11px; line-height: 150%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; padding: 30px 10px 20px; text-align: center;\">\n          <p style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; display: block; margin-bottom: 15px;\">\n            This email was sent to <a href=\"mailto:*|EMAIL|*\" target=\"_blank\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #000;\">*|EMAIL|*</a>\n          </p>\n          <p style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; display: block; margin-bottom: 15px;\">\n            <a href=\"*|ABOUT_LIST|*\" target=\"_blank\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #000;\"><em>why did I get this?</em></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"*|UNSUB|*\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #000;\">unsubscribe from this list</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"*|UPDATE_PROFILE|*\" style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; color: #000;\">update subscription preferences</a>\n          </p>\n          <p style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; display: block; margin-bottom: 15px;\">\n            <em>Copyright &copy; *|CURRENT_YEAR|* *|LIST:COMPANY|*, All rights reserved.<br>\n            *|LIST:ADDRESSLINE|*\n            </em>\n          </p>\n          <p style=\"-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; display: block; margin-bottom: 15px;\">*|REWARDS|*</p>\n      </td>\n    </tr>\n  </table>\n\n</center>\n</body>\n</html>"
  },
  {
    "path": "gulpfile.js",
    "content": "var gulp = require('gulp');\nvar gutil = require('gulp-util');\n\n\n/* *************\n  Config\n************* */\n\nvar globalData = {\n    mailchimp: require('./src/data/mailchimp.json')\n};\n\n\n/* *************\n  CSS\n************* */\n\nvar sass = require('gulp-sass');\nvar postcss = require('gulp-postcss');\nvar scss = require('postcss-scss');\nvar autoprefixer = require('autoprefixer');\nvar postcssProcessors = [\n    autoprefixer( { browsers: ['last 2 versions', 'ie > 10'] } )\n]\n\ngulp.task('sassInline', function(callback) {\n    return gulp.src('src/sass/inline.scss')\n        .pipe(\n           postcss(postcssProcessors, {syntax: scss})\n        )\n        .pipe(\n            sass({ outputStyle: 'expanded' })\n            .on('error', gutil.log)\n        )\n        .pipe(gulp.dest('build/css/'));\n});\n\ngulp.task('sassEmbedded', function(callback) {\n    return gulp.src('src/sass/embedded.scss')\n        .pipe(\n           postcss(postcssProcessors, {syntax: scss})\n        )\n        .pipe(\n            sass({ outputStyle: 'compressed' })\n            .on('error', gutil.log)\n        )\n        .pipe(gulp.dest('build/css/')); \n});\n\n\n\nvar inlineCss = require('gulp-inline-css');\n\ngulp.task('inlinecss', ['sassInline', 'nunjucks'], function() {\n    return gulp.src('build/*.html')\n        .pipe(\n            inlineCss({\n                applyStyleTags: false,\n                removeStyleTags: false\n            })\n            .on('error', gutil.log)\n        )\n        .pipe(gulp.dest('build/'))\n        .pipe(connect.reload());\n});\n\n\n\n\n\n/* *************\n  TEMPLATING\n************* */\n\nvar nunjucksRender = require('gulp-nunjucks-render');\nvar data = require('gulp-data');\n\ngulp.task('nunjucks', ['sassEmbedded'], function() {\n    return gulp.src('src/emails/*.nunjucks')\n        .pipe(\n            data(function() {\n                return globalData;\n            })\n            .on('error', gutil.log)\n        )\n        .pipe(\n            nunjucksRender({\n                path: ['src/templates/', 'build/css/']\n            })\n            .on('error', gutil.log)\n        )\n        .pipe(gulp.dest('build/'));\n});\n\n\n/* *************\n    ZIP\n************* */\n\nvar zip = require('gulp-zip');\n\ngulp.task('zip', function () {\n    return gulp.src('build/**')\n        .pipe(zip('build.zip'))\n        .pipe(gulp.dest('./'));\n});\n\n\n/* *************\n\tSERVER\n************* */\n\nvar connect = require('gulp-connect');\n\ngulp.task('connect', function() {\n    connect.server({\n        port: 8000,\n        root: 'build', // Serve from build directory instead,\n        livereload:true\n    });\n});\n\n\n\n/* *************\n    WATCH\n************* */\n\nvar filesToWatch = [\n    'src/sass/**/*.scss',\n    'src/emails/*.nunjucks',\n    'src/templates/**/*.nunjucks',\n    'src/data/*.json'\n]\n\ngulp.task('watch', function() {\n    gulp.watch(filesToWatch,['nunjucks', 'inlinecss']); \n});\n\n\n/* *************\n    DEFAULT\n************* */\n\ngulp.task('default', ['connect', 'nunjucks', 'inlinecss', 'watch']);\n\n\n"
  },
  {
    "path": "license.txt",
    "content": "The MIT License (MIT)\n\nCopyright (c) [2016] [Ire Aderinokun]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
  },
  {
    "path": "package.json",
    "content": "{\n  \"name\": \"gulp-email-workflow\",\n  \"description\": \"A workflow for building HTML email using Gulp\",\n  \"version\": \"1.0.0\",\n  \"author\": \"Ire Aderinokun\",\n  \"license\": \"MIT\",\n  \"repository\": {\n    \"type\": \"git\",\n    \"url\": \"https://github.com/ireade/gulp-email-workflow\"\n  },\n  \"main\": \"gulpfile.js\",\n  \"devDependencies\": {\n    \"autoprefixer\": \"^6.3.6\",\n    \"gulp\": \"^3.9.1\",\n    \"gulp-connect\": \"^3.2.2\",\n    \"gulp-data\": \"^1.2.1\",\n    \"gulp-inline-css\": \"^3.1.0\",\n    \"gulp-nunjucks-render\": \"^2.0.0\",\n    \"gulp-postcss\": \"^6.1.0\",\n    \"gulp-sass\": \"^2.2.0\",\n    \"gulp-util\": \"^3.0.7\",\n    \"gulp-zip\": \"^3.2.0\",\n    \"postcss-scss\": \"^0.1.7\"\n  },\n  \"scripts\": {\n    \"start\": \"gulp\",\n    \"zip\": \"gulp zip\"\n  }\n}\n"
  },
  {
    "path": "src/data/mailchimp.json",
    "content": "{\n\t\"campaign_title\": \"\",\n\t\"campaign_url\": \"\",\n\n\t\"page_title\": \"*|MC:SUBJECT|*\",\n\n\t\"publisher_name\": \"*|LIST:COMPANY|*\",\n\t\"publisher_url\": \"*|LIST:URL|*\"\n}"
  },
  {
    "path": "src/emails/index.nunjucks",
    "content": "{% extends \"mailchimp.nunjucks\" %}\n\n{% block preheader %} \nA gulp workflow for building HTML emails\n{% endblock %}\n\n{% block email_title %} \nGulp Email Workflow\n{% endblock %}\n\n{% block email_subtitle %} \nBuild Better Emails\n{% endblock %}\n\n\n{% block email_content %} \n<p><a href=\"https://github.com/ireade/gulp-email-workflow\">Gulp Email Workflow</a> is a simple workflow for building HTML emails using Gulp.js. Lorem Khaled Ipsum is a major key to success. Find peace, life is like a water fall, you’ve gotta flow. They don’t want us to win. Wraith talk. Cloth talk. </p>\n\n<h2>Sample Content</h2>\n\n<h3>A code block</h3>\n\n<pre><code class=\"language-css\">.hg { \n  display: grid; \n  grid-template-areas: \"header header header\" \n\t\t       \"navigation main ads\" \n\t\t       \"footer footer footer\";\n  grid-template-columns: 150px 1fr 150px; \n  grid-template-rows: 100px 1fr 30px; \n  min-height: 100vh; \n}</code></pre>\n\n<h3>An unordered list</h3>\n\n<ul>\n\t<li>List item one</li>\n\t<li>List item two</li>\n\t<li>List item three</li>\n</ul>\n\n<h3>An ordered list</h3>\n\n<ol>\n\t<li>List item one</li>\n\t<li>List item two</li>\n\t<li>List item three</li>\n</ol>\n\n<h3>A block quote</h3>\n\n<blockquote>\n\tThe first of the month is coming, we have to get money, we have no choice. \n</blockquote>\n\n{% endblock %}\n\n\n\n{% block email_footer %} \nThank you for reading!\n{% endblock %}\n\n"
  },
  {
    "path": "src/sass/_reset.scss",
    "content": "/* RESET */\n\nbody {\n\tmargin:0; \n\tpadding:0;\n\twidth: 100%;\n\theight:100% !important;\n}\n\nimg { \n\tborder:0; \n\theight:auto; \n\tline-height:100%; \n\toutline:none; \n\ttext-decoration:none;\n\tmax-width: 100%\n}\n\ntable { \n\tborder-collapse:collapse !important;\n}\n\n\n/* CLIENT SPECIFIC STYLES */\n\n/* Force Outlook to provide a \"view in browser\" message */\n#outlook a {\n\tpadding:0;\n} \n\n.ReadMsgBody{\n\twidth:100%;\n} \n.ExternalClass {\n\twidth:100%;\n\tline-height: 100%;\n\tp,\n\tspan,\n\tfont,\n\ttd,\n\tdiv {\n\t\tline-height: 100%;\n\t}\n}\n\nbody, table, td, p, a, li, blockquote {\n  -webkit-text-size-adjust: 100%; \n  -ms-text-size-adjust:100%;\n} \n\n/* Remove spacing between tables in Outlook 2007 and up */\ntable, td {\n  mso-table-lspace:0pt; \n  mso-table-rspace:0pt;\n} \n\n/* Allow smoother rendering of resized image in Internet Explorer */\nimg {\n  -ms-interpolation-mode:bicubic;\n}\n\n\n\n"
  },
  {
    "path": "src/sass/embedded.scss",
    "content": "#template-content {\n\n  a:link, \n  a:visited, \n  a.yshortcuts {\n    color: #000;\n    font-weight:normal;\n    text-decoration:underline;\n  }\n\n  h2 {\n    margin-top: 30px;\n    margin-bottom: 20px;\n  }\n\n  h3 {\n    margin-top: 30px;\n    margin-bottom: 10px;\n  }\n\n  img {\n    display:inline;\n    height:auto;\n    width: 100%;\n  }\n\n  p {\n    margin: 0 0 20px;\n  }\n\n  pre {\n    display: block;\n    width: 90%;\n    overflow-x: scroll;\n    background-color: #F5F5F5;\n    padding: 15px;\n  }\n\n  code {\n    background-color: #F5F5F5;\n  }\n\n\n  blockquote {\n    margin: 0 0 10px;\n    border-left: 5px solid #F5F5F5;\n    padding: 5px 10px;\n    font-style: italic;\n  }\n\n\n}"
  },
  {
    "path": "src/sass/inline.scss",
    "content": "\n@import \n\t'reset'\n;\n\n$font-stack: 'Helvetica Neue', Helvetica, 'Arial', sans-serif;\n$theme: rgb(255, 219, 58);\n$bg-color: #F5F5F5;\n\n\nbody {\n\tbackground-color: $bg-color; \n}\n\na {\n\tcolor: #000;\n}\n\n\n#body-container {\n\twidth: 100%;\n\tmax-width: 600px;\n\tmargin: 20px auto;\n\t\n}\n\n\n\n/* **********************\n\n\tPreheader\n\n ********************** */\n\n\n\n#template-preheader {\n\n\ttd {\n\t\tpadding: 15px 10px;\n\t\tfont-family: $font-stack;\n\t\tfont-style: italic;\n\t\tcolor: #606060; \n\t\tfont-size: 13px;\n\t}\n\n\ttd:last-child {\n\t\ttext-align: right;\n\t}\n}\n\n\n\n\n\n/* **********************\n\n\tMain Content\n\n ********************** */\n\n#template-content {\n\tbackground-color: #fff;\n\tbox-shadow: 2px 2px 3px rgba(150, 150, 150, 0.2)\n}\n\n\n\n#template-content-header {\n\ttext-align: center; \n\tposition: relative;\n\ttd {\n\t\tbackground-color: $theme;\n\t\tpadding: 20px 15px;\n\t\tfont-family: $font-stack;\n\t}\n}\n\n.email-title {\n\tline-height:120%; \n\tcolor: #000; \n\tfont-size: 24px; \n\tfont-weight: 700; \n\ttext-decoration: none;\n}\n.email-subtitle {\n\tfont-size: 16px;\n}\n\n\n\n\n\n/* */\n\n#template-content-content {\n\twidth: 90%;\n\tmax-width: 560px;\n\ttext-align: left;\n\tfont-family: $font-stack;\n\tfont-weight: 400;\n\tfont-size: 16px; \n\tline-height:150%;\n\tmargin: 30px 0;\n\n}\n\n\n/* */\n\n#template-content-footer {\n\t\n\ttr {\n\t\tbackground-color: rgb(240, 240, 240);\n\t}\n\n\ttd {\n\t\tpadding: 20px 15px;\n\t\tfont-family: $font-stack;\n\t\tfont-weight: 400;\n\t\tline-height:125%;\n\t\tfont-size: 15px; \n\t}\n}\n\n\n\n\n/* **********************\n\n\tFooter\n\n ********************** */\n\n#template-footer {\n\n\ttd {\n\t\tfont-family: $font-stack;\n\t\tcolor: #606060;  \n\t\tfont-size: 11px; \n\t\tline-height: 150%; \n\t\ttext-align:center;\n\t\tpadding: 30px 10px 20px;\n\t}\n\n\tp {\t\n\t\tdisplay: block;\n\t\tmargin-bottom: 15px;\n\t}\t\n}\n\n\n\n"
  },
  {
    "path": "src/templates/mailchimp.nunjucks",
    "content": "{% include \"partials/header.nunjucks\" %}\n<center id=\"body-container\">\n\n  <!-- PREHEADER //////////////// -->\n  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"template-preheader\" width=\"100%\">\n    <tr>\n      <td mc:edit=\"preheader_content01\" valign=\"top\" width=\"50%\">\n          {% block preheader %}{% endblock %}\n      </td>\n      <td mc:edit=\"preheader_content02\" valign=\"top\" width=\"50%\">\n          <a href=\"*|ARCHIVE|*\">View this email in your browser</a>\n      </td>\n    </tr>\n  </table>\n\n\n  <!-- START TEMPLATE CONTENT //////////////// -->\n  <center id=\"template-content\">\n\n    <!-- EMAIL HEADER -->\n    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"template-content-header\" width=\"100%\">\n      <tr>\n        <td align=\"center\" valign=\"top\">\n            <h1 mc:edit=\"email_title\" class=\"email-title\">\n            {% block email_title %}{% endblock %}\n            </h1>\n            <p mc:edit=\"email_subtitle\" class=\"email-subtitle\">\n            {% block email_subtitle %}{% endblock %}\n            </p>\n        </td>\n      </tr>\n    </table>\n\n\n    <!-- EMAIL CONTENT -->\n    <div mc:edit=\"body\" id=\"template-content-content\">\n      {% block email_content %}{% endblock %}\n    </div>\n\n\n    <!-- EMAIL FOOTER -->\n    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"template-content-footer\" width=\"100%\">\n      <tr>\n        <td align=\"center\" valign=\"top\" mc:edit=\"email_footer\">\n            {% block email_footer %}{% endblock %}\n        </td>\n      </tr>\n    </table>\n\n  </center>\n  <!-- END TEMPLATE CONTENT //////////////// -->\n\n\n  <!-- TEMPLATE FOOTER //////////////// -->\n  <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" id=\"template-footer\">\n    <tr>\n        <td align=\"center\" valign=\"top\">\n          <p>\n            This email was sent to <a href=\"mailto:*|EMAIL|*\" target=\"_blank\">*|EMAIL|*</a>\n          </p>\n          <p>\n            <a href=\"*|ABOUT_LIST|*\" target=\"_blank\"><em>why did I get this?</em></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"*|UNSUB|*\">unsubscribe from this list</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"*|UPDATE_PROFILE|*\">update subscription preferences</a>\n          </p>\n          <p>\n            <em>Copyright &copy; *|CURRENT_YEAR|* *|LIST:COMPANY|*, All rights reserved.<br>\n            *|LIST:ADDRESSLINE|*\n            </em>\n          </p>\n          <p>*|REWARDS|*</p>\n      </td>\n    </tr>\n  </table>\n\n</center>\n{% include \"partials/footer.nunjucks\" %}"
  },
  {
    "path": "src/templates/partials/footer.nunjucks",
    "content": "</body>\n</html>"
  },
  {
    "path": "src/templates/partials/header.nunjucks",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n  <meta property=\"og:type\" content=\"article\">\n  <meta property=\"og:title\" content=\"{{mailchimp.campaign_title}}\">\n  <meta property=\"og:url\" content=\"{{mailchimp.campaign_url}}\">\n  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n\n  <title>{{mailchimp.page_title}}</title>\n\n  <link rel=\"stylesheet\" href=\"css/inline.css\"> \n  <style type=\"text/css\">{% include \"./../../../build/css/embedded.css\" %}</style>\n</head>\n<body leftmargin=\"0\" marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\" offset=\"0\">\n\n    <div itemscope=\"\" itemtype=\"http://schema.org/EmailMessage\">\n      <div itemprop=\"publisher\" itemscope=\"\" itemtype=\"http://schema.org/Organization\">\n        <meta itemprop=\"name\" content=\"{{mailchimp.publisher_name}}\">\n        <link itemprop=\"url\" content=\"{{mailchimp.publisher_url}}\">\n      </div>\n      <div itemprop=\"about\" itemscope=\"\" itemtype=\"http://schema.org/Offer\"></div>\n    </div>"
  }
]