The purpose of this repository is to hold a responsive HTML email template which can be rendered into various other template formats needed for Party email communications and systems.
The variables.json file contains the configuration, this is where each custom template for other systems or applications can define a search and replace based on the HTML comment tag format found in email.html. The variables are rendered into a copy of email.html, the css style is then applied as inline on styled elements, with the final result saved in the automatically created build directory where it can then be updated into other systems or applications as needed.
-
Checkout the repository to you local system
-
Run the
npm installcommand -
Run the
npm startornpm run buildto compile the various templates into thebuilddirectory.
Your compiled templates can now be copied into their respective systems.
Forked from https://github.com/leemunroe/responsive-html-email-template.git
Sometimes all you want is a really simple responsive HTML email template. Here it is.
Preview: http://leemunroe.github.io/responsive-html-email-template/email.html
Use the template as is. They'll put the CSS inline for you when you put together your campaign.
For an API like Mailgun you need to put the CSS inline. You can use inliner tools like Putsmail or Juice to do this automatically.
- Copy all of email.html
- Paste the HTML as the source into Premailer
- Copy the HTML results and use them in your email view/template
Tested on mobile, desktop and web.
