Giter Site home page Giter Site logo

ajrdesign / email-builder Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 5.0 13.96 MB

A simple way to build HTML emails using a CMS.

License: Other

ApacheConf 0.07% CSS 18.96% PHP 61.70% JavaScript 19.18% Batchfile 0.02% PowerShell 0.08%
kirby email-template html-emails

email-builder's Introduction

Run the email builder

  1. Download MAMP.
  2. Clone this repo to a folder that MAMP can access.
  3. Launch MAMP and make sure it's running a server.
  4. Navigate to that folder to view the app localy (i.e. http://localhost:8888/email-builder/)

Creating templates

There are three files that you need to create a template.

  1. Content .txt file. This has the actualy content for the individual emails.
  2. Blueprint .yml file. This defines the form fields for the panel/dashboard.
  3. Template .php file. This defines how the email will look when combined with the content from the .txt files. Parts of this can be broken up into reusable 'snippets' for consistency.

Folders for email files

Set up the email to display correctly:

  1. Extract the body of your email (Remove the header and footer sections and just take the main content part)
  2. Create a php file in site>templates and place the body section in there.
  3. Add this to the top of the file:
    <?php snippet('email-header') ?>
  4. Add this to the bottom of the file:
    <?php snippet('email-footer') ?>
    <?php snippet('email-inliner') ?>
  5. Add in templating language to the sections you want to edit.

Set up the blueprint to be edited on the panel

Blueprints are the forms that control the templating language from the Panel.

  1. Create a .yml file in site > blueprints.
  2. Follow the documentation here to set up the editable parts of the email. Note: Structured data is really useful for setting up complicated elements that repeat (i.e. media boxes or cards).

email-builder's People

Contributors

ajrdesign avatar bastianallgeier avatar johnroh avatar lukasbestle avatar maxmurillo avatar sashtown avatar tysongach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

email-builder's Issues

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.