Run the email builder
- 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/)
Creating templates
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.
Set up the email to display correctly:
- 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.
Set up the blueprint to be edited on the panel
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).

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

