- Download MAMP.
- Clone this repo to a folder that MAMP can access.
- Launch MAMP and make sure it's running a server.
- Navigate to that folder to view the app localy (i.e. http://localhost:8888/email-builder/)
There are three files that you need to create a template.
- Content .txt file. This has the actualy content for the individual emails.
- Blueprint .yml file. This defines the form fields for the panel/dashboard.
- 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.
- Extract the body of your email (Remove the header and footer sections and just take the main content part)
- Create a php file in site>templates and place the body section in there.
- Add this to the top of the file:
<?php snippet('email-header') ?>
- Add this to the bottom of the file:
<?php snippet('email-footer') ?> <?php snippet('email-inliner') ?>
- Add in templating language to the sections you want to edit.
Blueprints are the forms that control the templating language from the Panel.
- Create a .yml file in site > blueprints.
- 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).