Skip to content

rekryt/inky-letters

Repository files navigation

Gulp & Sass+Inky & BrowserSync

How to install:

mkdir letters
cd letters

git clone https://github.com/Rekryt/inky-letters .
rm -rf .git #optional

npm install

How to use:

npm run dev
npm run build

Create html in folder "templates"

<row>
  <columns large="6"></columns>
  <columns large="6"></columns>
</row>

And get complicated, but battle-tested, email-ready HTML like this:

<table class="row">
  <tbody>
    <tr>
      <th class="small-12 large-6 columns first">
        <table>
          <tr>
            <th class="expander"></th>
          </tr>
        </table>
      </th>
      <th class="small-12 large-6 columns first">
        <table>
          <tr>
            <th class="expander"></th>
          </tr>
        </table>
      </th>
    </tr>
  </tbody>
</table>

After, casting styles to inline style strings, result placed in "dist" folder:

<table style="...">
  <tbody>
    <tr style="...">
      <th style="...">
        <table style="...">
          <tbody>
            <tr style="...">
              <th style="..."></th>
            </tr>
          </tbody>
        </table>
      </th>
      <th style="...">
        <table style="...">
          <tbody>
            <tr style="...">
              <th style="..."></th>
            </tr>
          </tbody>
        </table>
      </th>
    </tr>
  </tbody>
</table>

How to install gulp:

npm install gulp-cli -g

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published