Giter Club home page Giter Club logo

maizzle-starter's Introduction

Stack

  • Maizzle | create custom email templates using Tailwind and regular HTML
    • Browsersync | listing a directory of emails in browser
  • Liquid | for Shopify compatability

Getting Started

yarn install

build development server

yarn dev
<!-- update config.js to match the production file you're working on -->

Build emails for production:

yarn build:<config_name>
<!-- 
  eg. yarn build:shopify
  update scripts when a new project is added
 -->

Currently when creating templates for Shopify we have to separate the Liquid and Dev code.

  <if condition="page.environment == 'shopify'">
    <raw>
    <table>
      // liquid code
    </table>
    </raw>
  </if>
  <else>
    <table>
      // dev code
    </table>
  </else>

This can likely be automated in the future.

Todo (possible improvements)

  • house multiple projects emails, use seperate config file & dynamic/seperated components
  • refactor tailwind reusable components, set utilities
  • create tailwind configs for each project
  • convert HTML to Liquid progromatically
  • validate Liquid code and allow local rendering using liquidjs
  • add email sending to a free validation service. could use nodemailer or mailgun

FYI:

  • for liquid support in vsCode add "emmet.includeLanguages": { "liquid": "html" } to your settings
  • most Maizzle elements, eg. <component></component> do not allow self-closing
  • rebuild if you change test.json or config files
  • folders in src/templates breaks asset imports (and likely other stuff)
  • @{{ name | fallback: 'friend' }} for passing escaped variables to components.
  • only able to get escaped variables working (@{{ name | fallback: 'friend' }}) within the <raw> element of components

If you've never coded emails before, read this

Email Checking

If you're unsure about HTML or CSS validity you can check here

We need to evaluate and add the best to workflow

maizzle-starter's People

Contributors

drew-macgibbon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.